0 0 andrew andrew2021-03-02 09:50:502021-03-02 09:51:59Facebook friends
This question is similar to the "Route Between Nodes" from this book. Problem Consider a popular social networking website, Facebook for example. People can create their own profile and add friends. Given two Facebook profiles, I want to…
0 0 andrew andrew2021-03-02 09:41:042021-03-02 09:41:48Validate BST
My usual mistake for this problem: You can not just compare node.left.value < node.value < node.right.value. This does not handle edge cases such as: 10 / \ 5 20 \ 20 20…
Mocki.co. Practice makes perfect. Have mock interviews with engineers from top companies. Find mentors and tutors.