Tip 1 : Do practice as much as possible.
Tip 2 : Focus on skills rather than more on memorising.
Tip 1 : It should not be too long or too short.
Tip 2 : Do not put false things on resume.
It was in the morning around 8:00AM-8:30AM. Platform used for this round was hackerrank. Coding questions were of moderate level.
A diagonal traversal Consider lines of slope -1 passing between nodes.
1
/ \
4 2
/ \ \
8 5 3
/ \ /
9 7 6
Example: Here potential diagonals are:
1 -- 2 -- 3
4 -- 5 -- 7 -- 6
8 -- 9 -- 7
Input:
5
/ \
6 5
\ \
6 5
Output: 2
Explanation:
Diagonal 6 – 6 and 5 – 5 contains equal value. Therefore, the required output is 2.
Given a binary tree :
All the root to leaf paths are :
1 2 4
1 2 5
1 3
1. Two nodes may have the same value associated with it.
2. The root node will be fixed and will be provided in the function.
3. Note that the nodes in a path will appear in a fixed order. For example, 1 2 3 is not the same as 2 1 3.
4. Each path should be returned as a string consisting of nodes in order and separated by a space.
5. The path length may be as small as ‘1’.
It was in the evening around 4:00PM-4:20PM. Platform used for this round was skype. Interviewer was very calm in questioning.
What is a database system?
When does checkpoint occur in DBMS?
What is RDBMS?
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which operator is used for exponentiation in Python?