Tip 1 : Always be consistent in solving coding questions, solve at least 2 questions everyday
Tip 2 : Learn System Design questions
Tip 3 : Also, solve different types of questions on different patterns
Tip 1 : Be crystal clear about your experience
Tip 2 : Go through the job description well and list out the keywords and use them in your resume
It was an online interview round in the morning from 11am to 12 pm
Naive Solution : I sorted the array and then used the kth element from the last.
Improved Solution (O(n.log(k))) : Used a min heap of size K and then iterated the entire array and check the elements are greater to the root or not and accordingly replaces the root of the min heap (by heapifying it) and at the end the root of the min heap will give the kth largest element.
Further Optimized solution (O(n)) : Used the quick select sorting algorithm by choosing a pivot and follow the algorithm such that the kth largest element will be at its correct position, rest elements smaller than that will be on the left side and larger elements will be on the right side. the left and right elements need not to be in the sorted order
This is a visualization of the Circular Linked List, represented by:
1 2 3 4 5 -1
The Circular Linked List before/after deletion may happen to be empty. In that case, only print -1.
All integers in the list are unique.
It was an online system design round, basically a combination of High level Design and Low Level Design
I was asked to design a rate limiter where a single user can make 5 requests in a minute. If the user raises more requests than that, then that will be terminated with a message that you have reached out the limit, please try again after 1 minute.
Tip 1 : Clear all your doubts with the interviewer, don't assume anything by yourself.
Tip 2 : Learn some of the basic system design algorithms, like i used leaky bucket rate limiter, similarly you can use token rate limiter etc.
It was an online managerial cum HR round scheduled at evening 4 pm to 4:30 pm
It was a general discussion round, asked about my prior project experience and the challenges faced.
Then he told me about the team and project and tech stack.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which traversal uses a queue as its primary data structure?