Tip 1 : Write Production ready code in during the interview
Tip 2 : Study about subjects well.
Tip 1 : Have good explanations of projects.
Tip 2 : Mention about problem solving skills.
This round consisted of DSA questions and they were looking for good coding practices.



Input: 'n' = 3, 'k' = 2 and 'arr' = {1, 2, 3}
Output: 2
Explanation: The maximum possible minimum distance will be 2 when 2 cows are placed at positions {1, 3}. Here distance between cows is 2.
Step 1 -> Gave a brute force solution.
Step 2 -> Interviewer asked me to optimize it.
Step 3 -> Optimized it using Binary Search.



Input: 'a' = [7, 12, 1, 20]
Output: NGE = [12, 20, 20, -1]
Explanation: For the given array,
- The next greater element for 7 is 12.
- The next greater element for 12 is 20.
- The next greater element for 1 is 20.
- There is no greater element for 20 on the right side. So we consider NGE as -1.
Step 1 -> Gave a brute force solution in O(N^2).
Step 2 -> Interviewer told me to optimize it.
Step 3 -> Optimized solution using Stack.
This round consisted of React related questions, javascript questions.
The question was to print numbers from 1 to 10 , with each number printing asynchronously after 1 second , using Javascript.
Step 1 -> Wrote a code using setTimeout()
What are promises in javascript , What is component lifecycle in ReactJS, What is the difference between Library and Framework, What is redux and what is middleware ?
Step 1 -> Gave short answers for each questions relating to real life examples.

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?