dsa2 min read
Flatten Binary Tree to Linked List — Morris Traversal
Flatten a binary tree in-place into a linked list following pre-order using the Morris traversal approach.
Read →
webcoderspeed.com
2 articles
Flatten a binary tree in-place into a linked list following pre-order using the Morris traversal approach.
Find and swap the two misplaced nodes in a BST using in-order traversal to detect the violations.