Tip 1 : Do prepare for SQL queries
Tip 2 : Try to practice DSA questions
Tip 3 : Go through the projects that you did
Tip 1 : Try to explain your project in 2-3 lines
Tip 2 : Put only those thing that you are confident about



1. All four numbers should exist at different indices in the given array.
2. The answer is case-sensitive.
Did the two pointer approach for solving it.



Used the common approach of using slow and fast pointer



• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
'P' = 1, 'Q' = 3
tree = 2 1 4 -1 -1 3 -1 -1 -1,
The BST corresponding will be-

Here, we can clearly see that LCA of node 1 and node 3 is 2.
Went through explaining the normal approach which we use in BT. And than did the optimization as it was bst



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Used two pointer approach
Was given a schema and for which SQL queries were asked
About myself and what I did new in the lockdown. Had a healthy discussion

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