Tip 1 : plan what you want to learn, it helps with time management
Tip 2 : revise at the end of the day what you learnt and make flash cards
Tip 3 : be result oriented, try to break the task into smaller chunks and complete them and most of all don't give up
Tip 1 : mention what was the effect of the task you did in your company with metrics(eg. decreased latency by 50%)
Tip 2 : only add things to your resume that will make you look even better, remove everything which is unnecessary (Hobbies, Languages you speak, "I was member of so and so cultural commitie")
Tip 3 : Add your leetcode, codeforces ... profile, add your awesome ranks in Google Kickstart etc
3 DSA questions based on pointers, sorting and binary search. I only remember 1.



Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
1 Linked List, 1 two pointers



The given singly linked list is 6 -> 5 -> 3 -> 4 -> 7 -> 1 -> 2

The modified linked list should have all even values in starting and odd values in the end.
1. Use 2 pointers and 2 sentinal nodes.
2. First pointer is placed at even index and second pointer at odd index. The sentinel node's next is assigned to the respective pointers
3. Then move them two step at a time
4. return the next values of both the sentinels



The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
1. 2 pointers (Better)
2. prefix array
2 Binary Tree questions
happened 15 mins after the first interview
interviewer was very patient and helpful



• 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.
1. All the elements of the Binary Search Tree are unique.
2. You can’t use the same node value/element of BST twice.
tree: 8 5 10 2 6 -1 -1 -1 -1 -1 7 -1 -1
'K' = 13,

The nodes with values 8 and 5 as shown in the above figure gives sum equal to the given target 13.
Therefore, the output will be “true” i.e it is possible to find a pair in the given BST having sum equal to ‘K’.



For the given binary tree: [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
Start Node: 3
1
/ \
2 3
/ \
4 5
Output: 2
Explanation :
In the zeroth minute, Node 3 will start to burn.
After one minute, Nodes (1, 4, 5) that are adjacent to 3 will burn completely.
After two minutes, the only remaining Node 2 will be burnt and there will be no nodes remaining in the binary tree.
So, the whole tree will burn in 2 minutes.
started after 1 hour
interviewer was friendly and very helpful
time for this round was less and I was expected to answer very quickly
create a LLD for Call Center.
Discussions on proper data structures to use, inheritance, locking, pub-sub vs polling
Tip 1 : start with a basic class skeleton and make it better using SOLID principles
Tip 2 : know how to use Data Structures from library like ArrayList, HashMap, PriorityQueue in java
Tip 3 : you don't need to create the whole codebase. Clarify which features to focus on and create stubs for services that you might need
Tip 4 : Don't assume anything. Ask a lot of questions and make sure you in the right direction
Hiring Manager Round started after 2 hours
Basic HR questions
Questions on past work experience
some discussion on HLD
Are you a team player?
What will you do if the team can't manage the deadline?

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?