Tip 1 : Practice Every day
Tip 2 : Revised JavaScript in depth
Tip 1 : Mention projects in your domain
Tip 2 : Highlight your coding profiles
The round was mostly domain specific.
I was asked questions in depth on JavaScript closures, async behaviour, event loop.
Javascript Closures, Async, Promises, Event Loop, frontend optimisation, SEO
Tip 1 : Revise all the JavaScript concepts in depth
Tip 2 : Revise frontend optimisations
This round has initially started with underlying concepts of react and then moved towards problem solving.



Let the array = [ 4, 2, 1, 5, 3 ]
Let pivot to be the rightmost number.

I analysed through various sorting algorithms like bubble, insertion, selection, merge wnd quick sort.
Written code for quick sort.



1. If 'X' is not found in the array, return 0.
2. The given array is sorted in non-decreasing order.
First I have done on brute force. However interviewer wanted me to optimise it.
Then I came up with a solution based on binary search, to find first occurence and last occurrence of them element
This was with senior manager round, where I was questions on problem solving.



initially I have given a linear approach but interviewer has asked me to optimise it so I went to binary search approach



Consider the array {2,1,5,6,3,8} and 'K' = 3, the sorted array will be {8, 6, 5, 3, 2, 1}, and the 3rd largest element will be 5.
1) Kth largest element in an array is the kth element of the array when sorted in non-increasing order.
2) All the elements of the array are pairwise distinct.
Initially I have sorted the given array and given the case elements from the array however interview optimise it and I was able to come up with a modification on quicksort algorithm.

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?