Tip 1: Start solving easy coding problems as early as possible.
Tip 2: Use a timer to solve questions within a specified time (max 30-40 minutes for easy ones).
Tip 3: Keep in touch with the basics of your programming language to code faster.
Tip 4: Have a good in-depth knowledge of the projects you mention on your resume and be prepared for a few optimization questions.
Tip 5: Find and prepare a set of common interview questions on computer science concepts (like race conditions, normalization, etc.).
Tip 1: Keep it a one-pager, mentioning details relevant to the position applying for
Tip 2: Always mention special achievements/programming profile (GitHub etc.) to get an edge over others
Timing: from 10 am - 11 am
Mode: Online Google Meet
The interviewer joined in on time and was very professional in interaction.


Consider an array of size four. The elements of the array are { -4, 5, 6, 1}.
The value of K is 4.
The subarrays whose sum is divisible by 4 are as follows:
[ -4 ]
[-4, 5, 6, 1]
[ 5, 6, 1]
Hence, there are three subarrays whose sum is divisible by 4.
Since I had seen a similar problem before, was able to come to a solution in time. Started off with a brute force approach and then narrowed down to using O(n) solution using Kadane's algorithm.



Input: Consider the binary tree A as shown in the figure:

Output: [10, 5, 3, 7, 18, 25, 20]
Explanation: As shown in the figure
The nodes on the left boundary are [10, 5, 3]
The nodes on the right boundary are [10, 20, 25]
The leaf nodes are [3, 7, 18, 25].
Please note that nodes 3 and 25 appear in two places but are considered once.
Discussed 2-3 approaches with and without extra space. Used a combination of inorder/preorder traversal to solve it finally.
Timing: from 2 pm to 3 pm
Mode: Online Google Meet
The interviewer joined in on time and was very professional in interaction.
Let 'N' = 5, 'NUMS' = [1, 2, 1, 1, 3], K = 2.
Consider the subarray [1, 2, 1, 1] (indices 0 to 3 of NUMS). The elements are 1, 2, 1, 1.
Pairs with equal values and i < j within this subarray are:
(1 at index 0, 1 at index 2), (1 at index 0, 1 at index 3), (1 at index 2, 1 at index 3).
There are 3 such pairs. Since 3 >= K (2), this subarray is good.
Consider the subarray [1, 2, 1, 1, 3] (indices 0 to 4 of NUMS). The elements are 1, 2, 1, 1, 3.
Pairs with equal values and i < j within this subarray are:
(1 at index 0, 1 at index 2), (1 at index 0, 1 at index 3), (1 at index 2, 1 at index 3).
There are 3 such pairs. Since 3 >= K (2), this subarray is good.
Consider the subarray [2, 1, 1] (indices 1 to 3 of NUMS). The elements are 2, 1, 1.
Pairs with equal values and i < j within this subarray are:
(1 at index 1, 1 at index 2).
There is 1 such pair. Since 1 < K (2), this subarray is not good.
It can be shown that the only good subarrays are [1, 2, 1, 1] and [1, 2, 1, 1, 3].
Therefore, the total number of good subarrays is 2.
Started with 2 loops to solve with brute force. Then after discussion with the interviewer, devised a sliding window algo to solve it. Could not write the code of it as there were time constraints.
Questions on Java programming language like: (Learn)
1. Call by value vs call by reference
2. Java memory structure - stack, heap, string space, etc
3. Streams - pros and cons
Questions on Operating System like: (Learn)
4. Multithreading and multiprocessing + race condition
5. Questions on my previous projects
Tip 1: Practise sliding window problems on 1-D array as these are most commonly asked in various interviews
Tip 2: Keep updated about core Java features
Tip 3: Brush up on fundamentals of memory structure and multithreading
Timing: 3 pm to 4 pm
It was taken by a senior member, focusing mainly on problem solving and design skills.
Asked me to design low-level design of ride hailing app (like Uber/Ola). Had to include the basic APIs to search a ride, book/create a ride, cancel a ride and update a ride. Pricing algo was to be very basic. Had to start with booking of 4-wheeler cabs and then extend it to 2-wheelers. (Learn)
Tip 1: Know some basic design patterns like Factory, Decorator, Adapter, etc
Tip 2: Always start by asking questions to make the requirements clear, do not dive deep into the code unless asked explicitly
Tip 3: Try to think out loud so that the interviewer knows what you are trying to do and can help when needed
Asked basic questions on my design and ways to make it more scalable and extensible. Then turned the discussion towards my projects and challenges I faced while working on them. These include my past company projects as well. (Learn)

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?