Tip 1 : Practice DSA on any platform.
Tip 2 : Solve puzzles and have some idea on DBMS, OOPS, etc
Tip 1 : Don't write solid content, make points
Tip 2 : Mention tech stack used in projects and experiences.
It was on a coding platform with mandatory webCam during mid day. There was a choice to select time slot. The platform was working properly.



1. There will be no leading zeros in any string in the list ‘BINARYNUMS’.
Consider N = 5 and the list ‘binaryNums’= [“0”, “01”, “010”, “100”, “101”]. This list consists of the binary representation of numbers [0, 1, 2, 4, 5]. Clearly, the missing number is 3 and its binary representation will be “11”. So you should return string “11”.
Used XOR method to solve the problem.
Calculate the final height and duration of flight for a projectile, while the user has to provide values for displacement, initial velocity, and launch angle.
Used projectile motion formulas and concepts
Round - 1



Used Kadane's Algorithm to find the solution
Suppose you have a 3 liter jug and a 5 liter jug (this could also be in gallons). The jugs have no measurement lines on them either. How could you measure exactly 4 liter using only those jugs and as much extra water as you need?
Round - 2



The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.
The number of edges between two nodes represents the length of the path between them.
Input: Consider the given binary tree:

Output: 6
Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.
By finding maximum height of left and right subtree.
SQL query for creating a database with some columns, introducing foreign keys, primary key, not null behaviour.
What are indexes, view?
What is virtual memory?



I did solved the question half way using stack, but couldn't solve completely.
Final Round - Virtual Interview
There were discussions on projects done in previous organisations.
Some discussion on Project.
Some managerial aspects.
Final Round
Discussion on previous employer projects, tech stack used and interested to work on.
Companies requirements and tech stack.



For the given array 'ARR' = [7, 12, 1, 20]
The next greater element for 7 is 12.
The next greater element for 12 is 20.
The next greater element for 1 is 20.
There is no greater element for 20 on the right side.
So, the output is [12, 20, 20, -1].
Using stack:
Push the first element to stack.
Pick rest of the elements one by one and follow the following steps in loop.
Mark the current element as next.
If stack is not empty, compare top element of stack with next.
If next is greater than the top element, Pop element from stack. next is the next greater element for the popped element.
Keep popping from the stack while the popped element is smaller than next. next becomes the next greater element for all such popped elements.
Finally, push the next in the stack.
After the loop in step 2 is over, pop all the elements from the stack and print -1 as the next element for them.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?