Tip 1 : Practice DS Algo problems from leetcode
Tip 2 : Practice System Design Problems
Tip 1 : Focus on previous work-ex
Tip 2 : Focus on projects


The problem can be solved using simple recursive traversal. We can keep track of level of a node by passing a parameter to all recursive calls. The idea is to keep track of maximum level also. And traverse the tree in a manner that right subtree is visited before left subtree. Whenever we see a node whose level is more than maximum level so far, we print the node because this is the last node in its level




1. You are not required to print the output explicitly, it has already been taken care of. Just implement the function and return the ‘K-th’ smallest element of BST.
2. You don’t need to return ‘K-th’ smallest node, return just value of that node.
3. If ‘K-th’ smallest element is not present in BST then return -1.
The Inorder Traversal of a BST traverses the nodes in increasing order. So the idea is to traverse the tree in Inorder. While traversing, keep track of the count of the nodes visited. If the count becomes k, print the node.
System Design Problems
Design your own cab service
Tip 1: Prepare them from scratch using Block level diagrams
Tip 2: Use data structures and API
Questions on Previous work ex
What are your strengths and weaknesses?
Where do you see yourself in 5 years?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?