Tip 1 : Keep talking about what are you thinking
Tip 2 : Don't beat about the bush if don't know the answer just say so
Tip 1 : Only show projects you are confident about
Tip 2 : Basic Web and android projects are also fine
First round had MCQ + 2 coding questions. It was held in morning around 11 am. It was held on campus.
Corresponding to the given matrix:-
From (0,0) coordinate robot cannot move to (0,1)
coordinate since there is obstacle on it.
So to reach (2,2) The path is (0,0) then to (1,0) then to
(2,0) then to (2,1) and finally (2,2).
Second Round was held in morning around 10-11 am. There was one interviewer working on his laptop. Interviewer was really helpful and first offered me water and then for a bit talked about himself.
1. BSTIterator(Node root) - It is a parameterized constructor in which you are given the root of the Binary search tree. It will be called whenever an object of BSTIterator is created.
2. next() - This member function will return the next element in the in-order traversal of the binary search tree. You need to implement this function.
3. hasNext() - This function will return true if there exists the next element in the traversal else it will return false. You need to implement this function
4. prev() - This member function will return the previous element in the in-order traversal of the binary search tree. You need to implement this function.
5. hasPrev() - This function will return true if there exists the previous element in the traversal else it will return false. You need to implement this function
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which is a DDL command in SQL?