Tag: interview
All the articles with the tag "interview".
-
DFS vs BFS: Complete Comparison With C++ Code, Examples & Use Cases
DFS vs BFS on one graph: stack vs queue, traversal order, O(V + E) time, memory, shortest paths, cycle detection and connected components, with C++ code.
-
Most Common Binary Search Tree (BST) Interview Questions (With C++ Solutions)
20 BST interview questions with tested C++: validate BST, kth smallest, LCA, floor and ceil, recover BST, BST to linked list and largest BST subtree.
-
Most Common Tree Interview Questions (With C++ Solutions)
Tree interview questions from easy to hard: height, diameter, LCA, symmetric, balanced, build from traversals and serialize, with tested C++ solutions.