Tip 1 : Leetcode medium problems are enough
Tip 2 : Target different approaches like binary search, Sliding window etc
Tip 3 : System Design Concepts
Tip 1 : Try to keep one page resume.
Tip 2 : Highlight your key skills
Tip 3 : If worked in multiple orgs in past put only one project each
- Asked 2 problems both were from leetcode
- Intitally interviewer explained that he'll ask only one problem and if time left he'll ask another problem.
- Since first problem solved in 15 mins, he asked next problem



Step 1 : This problem I already solved before.
Step 2 : Explained him the heap based approach and coded in Java using PriorityQueue
Step 3 : He understood the solution and asked me to code
Step 4 : After running working solution, he asked me to test with different test cases
Step 5 : He then asked time complexity
Coding Round, Question asked from leetcode



For the given string “CodingNinjas”: “Ninja” is a substring while “dinas” is a subsequence.
Step 1 : I first used Hashmap to count the occurence of each letter in target string
Step 2 : Then Using sliding window concept I tried to find the subsequence
Step 3 : On each finding, I was capurting results for smallest window size
Step 4 : I explained the approach to inteviewer
Step 5 : After that I did coding and ran the code
Step 6 : At the end, interviewer asked time complexity which was O(N)
Interviewer gave problem statement where he mentioned to design different components
- There are different datacenters where the logs of application were getting stored
- Now, org is thinking to maintain datalake of these logs in which the logs from different data centers will be stored at one datacenter
Tip 1 : First I asked the scale of logs like how many logs are getting stored every minute to findout scale
Tip 2 : Then I asked How these logs are currently stored in datacenters currently. I tried to understand the system in a more clear way.
Tip 3 : I used Messaging queue to parallely fetch logs and send to the target data center.
Tip 4 : Then the further question was how we will be storing in data center. For this, we discussed the concept of DB sharding and consistent hashing
Interview was hiring manager and asked system design question
Given a system which has multiple different servers running multiple test cases parallely. But on closely looking at system we found a fault that some systems are under utilized and some are under utilized
Tip 1 : I tried to understand the system more like how requests are being sending to different servers
Tip 2 : Then I gave one approach to add load balancer to distribute requests equally
Tip 3 : Interviewer asked to discuss pros/cons of this.
Tip 4 : We discussed the security concern and to handle that we can use Network load balancer instead of Application load balancer
Tip 5 : Then we discussed the increase in latency because the requests are going through one extra system
Tip 6 : To overcome this we then discussed the consistent hashing at producer level to equally send request among multiple servers.
Tip 7 : This round was all about discussing different approaches and finding pros/cons of each system

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?