Tip 1: Must do Previously asked Interviews as well as Online Test Questions.
Tip 2: Must have good knowledge of DSA
Tip 3: Have Good Coding Profiles
Tip 1: Have Good Programming Profiles
Tip 2: Every skill must be mentioned.
Tip 3: Focus on skills, projects, and experiences more.
This round was a mix of DSA problems and debugging the codes and writing the output for problems.
If the given linked list is 1 -> 2 -> 3 -> 4 -> 5 -> NULL.
Then rearrange it into 1 -> 5 -> 2 -> 4 -> 3 -> NULL.
Find middle of list
Reverse second half
Use to pointers to iterate through both lists, and interleave the nodes
Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]
Output: 3.5
Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
Binary search. Call 2 times getkth and k is about half of (m + n). Every time call getkth can reduce the scale k to its half. So the time complexity is log(m + n).
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which keyword is used for inheritance?