Tip 1 : Stay motivated
Tip 2 : Never loose confidence
Tip 3 : Don`t stop practicing DSA
Tip 1 : Add multiple projects
Tip 2 : be honest with your resume



Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.
2. Open brackets must be closed in the correct order.
()()()() is a valid parentheses.
)()()( is not a valid parentheses.
The idea is to put all the opening brackets in the stack. Whenever you hit a closing bracket, search if the top of the stack is the opening bracket of the same nature. If this holds then pop the stack and continue the iteration, in the end if the stack is empty, it means all brackets are well-formed . Otherwise, they are not balanced.




The idea is to traverse the tree starting from the root. If any of the given keys (n1 and n2) matches with the root, then the root is LCA (assuming that both keys are present). If the root doesn’t match with any of the keys, we recur for the left and right subtree.
The node which has one key present in its left subtree and the other key present in the right subtree is the LCA.
If both keys lie in the left subtree, then the left subtree has LCA also,
Otherwise, LCA lies in the right subtree.
Behavioural questions, interests and why are you willing to change

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