Tip 1 : Know your projects in depth.
Tip 2 : Focus on getting time and space-optimized solutions in interviews.
Tip 3 : Solve company-specific problems before the interview.
Tip 1 : Know the mentioned projects thoroughly.
Tip 2 : Try to include the keywords in the Job description in your resume.
Time window - (12 - 4 PM)
Can attempt anytime between the window.


If N=3 and K=1 and array elements are [1,2,5].
For A[0], A[1] is the element that lies in the range [0,2] so, A[0] is the happy element.
For A[1], A[0] is the element that lies in the range [1,3] so, A[1] is the happy element.
For A[2], there is no element that lies in the range [4,6] other than A[2] so, A[2] is not the happy element.
Hence, the output will be 2.



1. Let ‘X’ be a binary number formed by reading a substring of ‘S’ from left to right.
2. ‘X’ must not contain leading zeroes.
3. The decimal equivalent of ‘X’ must be a power of 5.
4. K must be the minimum possible.
If no such ‘K’ possible, then you need to return -1.
45 minutes was for 1 DSA problem and 15 mins is for googelyness.

1- Browser(homepage): Set homepage of the browser
2- Visit(url): Visit the url from the current page. It clears up all the forward history.
3- Back(steps): Move ‘steps’ backward in the browser history
4- Forward(steps): Move ‘steps’ forward in the browser history
If you can’t move steps forward or backward, just return the last website that can be reached.
The Queries are in the given format-:
The first line of each query contains the string representing the homepage of the web browser.
(1, url): Visit the url from the current page.
(2, steps): Move ‘steps’ backward in the browser history.
(3, steps): Move ‘steps’ forward in the browser history.
You are queries as [[“homepage.com”], [1 , “facebook.com”], [1, “codingninjas.com”],[2, 1], [3, 1]]
1 query is the query that sets the homepage as “homepage.com”.
2 query is the query to visit “facebook.com”
3 query is the query to visit “codingninjas.com”
4 query is the query that moves back one step to “facebook.com”
5 query is the query that moves forward one step to “codingninjas.com”
Hence the answer is [“facebook.com”, “codingninjas.com”]
60 mins were spent on a single problem.
Starting from naive approach, optimized the problem.



Let’s say you have an array/list [1,4,3,5] and ‘M’ is 3.Then the first subarray of size 3 is [1,4,3] whose median is 3.Then the second subarray of size 3 is [4,3,5] whose median is 4. Therefore the median of all the subarrays of size 3 is [3.0,4.0].

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?