Tip 1 : Have in depth knowledge of whatever you write on resume
Tip 2 : If you are applying for frontend dev then JS should be studied properly
Tip 1 : Have 1-2 good projects of frontend dev
Tip 2 : Should be of one page
This round was to be done only in Javascript



A subsequence is a sequence that can be derived from another sequence by deleting zero or more elements without changing the order of the remaining elements.


Input: ‘n’ = 7, ‘prices’ = [100, 80, 60, 70, 60, 75, 85]
Output: [1, 1, 1, 2, 1, 4, 6]
Explanation:
On the sixth day, when the stock price was 75,
The span came out to be 4 because the last three prices(plus today) were less than the current or the sixth day's price.
Similarly, we can deduce the remaining results.
You don’t need to print anything. Just implement the given function
Thsi round was JS specific
1) What is curring?
2) What is closure? He also asked me to implement closure. Then he asked some output questions related to closure.
3) Questions regarding eventloop with all minute details.
4) He asked me to write code for changing style using button click.
4) Difference between inline and block elements.
Then he asked me about my projects and internship.
I was able to answer all questions and was instantly called for round 2.
This round was JS specific + DSA



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
I wrote the optimized code, then he asked me to write recursive code of this.
We will linearly travel the array and maintain a minimum from the starting of the array and compare it with every element of the array, if it is greater than the minimum then take the difference and maintain it in max, otherwise update the minimum.
This round started with a formal introduction.
First interviewer asked a few output questions of JS which were quite tough.
Then he asked about event bubbling and asked me to write an event handler for a button.
Then the second interviewer asked questions related to box modal and selectors. Then he wrote CSS code for div and asked me to determine the colors of div.
Then he asked me about local storage, session storage and cache.
Then second interviewer asked some output questions of JS.
Then he asked about all the attributes of tag and few more questions related to HTML.

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