Tip 1 : Be good with one Object oriented language like java, c++ or python
Tip 2 : Be good in basic data structures and algorithms as those are asked more frequently. Like arrays, linkedlist, hashmap.
Tip 3 : Have two projects in your resume in choice of your language.
Tip 1 : Have atleast 2 projects on resume.
Tip 2 : Do not put things on resume which you can't tell. No need to keep multiple language. Just keep one in which you code.
Timing : 10:00-11:00
Environment : Video On
Interviewer : Lenient



Step 1 : First I gave stack solution verbally which does not reverse linked List but only prints linked list in reverse manner.
Step 2 : I used 3 pointer (previous, current and next pointers) approach to reverse the linked list. This is very standard and optimal approach to solve this question.
Step 3 : I was asked to write working code which I did and interviewer was satisfied.



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.
I directly jumped into optimal solution as the time was very less and I wanted to solve this question in time.
Step 1: I used following approach where I pre-computed the highest bar on the left and right of every bar in linear time. Then used these pre-computed values to find the amount of water in every array element.
Step 2 : Interviewer was satisfied with my explanation and didn't asked to code as time was over.
Timing : 12:00:-1:00
Environment : Video
Interviewer : Very helpful and friendly



Can you solve each query in O(logN) ?
Step 1 : I gave O(n) solution verbally to traverse and find element.
Step 2 : I gave modified binary search solution and wrote code for that.
Step 3 : Interviewer tried to asked lots of cross questions and tried confusing me to check whether I have learnt the solution or know it actually.
Step 4 : He was satisfied as I was able to clear all his doubts.
Design schema for the project I mentioned in my resume that is online messaging application.
Asked multiple queries on the same system.
Asked way to improve performance of queries.
Asked how index work and how indexes are stored and managed.
Tip 1 : Gave the schema for the system asked.
Tip 2 : You should know which DB to choose when. sql vs nosql
Tip 3 : Should know basics of how to make queries fast using indexes. Also know how indexes work.
Tip 4 : Good to have basic architecture of atleast one DB.
Timing : 2:00 PM - 3:00 PM
Lasted : 25 minutes only.
Environment : Video On.
Interviewer : Very lenient
How garbage collector work in java.
Tip 1 : Should have good knowledge of garbage collection.
Tip 2 : Should know how garbage collection improved over time.
Tip 3 : Should have knowledge of threads as well as garbage collector uses threads.
What was the project I was part in previous company and technologies used there.
Tip 1 : Be prepared with atleast one project with the design and technologies used there.
Tip 2 : Be prepared for counter questions possible in that project

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?