In this video I have discussed swap nodes problem from search section from hackerrank interview preparation kit.
There are basic knowledge about trees is required
Links for more learning
https://www.geeksforgeeks.org/differe....
/ how-to-solve-sliding-window-problems
/ introduction-to-binary-trees
0:00 Start
3:17 Explanation
4:13 Pre/In/post order
7:58 creation of tree and BFS
20:31 Swapping of elements
24:45 Inorder trans for BT
If you are someone who is trying to solve all the problems from hackerrank interview preparation kit playlist and getting stuck anywhere or looking for optimized solution do check my playlist
• Hackerrank Interview Preparation Kit