Tip 1: Do daily practice questions
Tip 2: Don't forget CS Fundamentals
Tip 3: Have some solid full stack type of projects, which helps them to tell your knowledge in everything
Tip 1: Include projects that tell Full stack knowledge of any tech you used, even it is less.
Tip 2: Don't make it more than 1 page and too complicated. Make it simple
2 coding questions were asked.



Input:
["AutocompleteSystem","input","input","input"]
[[["i want to join faang","icecream","i love coding ninjas"],[4,3,1],["i"],["s"],["#"]]
Output:
[null,["i want to join faang","icecream","i love coding ninjas"],[],[]]
Explanation:
* AutocompleteSystem obj = new AutocompleteSystem(["i want to join faang","icecream","i love coding ninjas"],[4,3,1]);
* obj.input(“i”); // return ["i want to join faang","icecream","i love coding ninjas"]. There are three sentences that have prefix "I".
* obj.input(“s”); // return []. There is no sentence with prefix “is”
* obj.input(“#”); // return [].
Step 1: Went with a brute approach first, told him about the time complexity it would take.
Step 2: Told him this could be improved if we used Tries here. Told him how I would implement it, the whole process, and time complexity, then coded it.



Input: 'a' = [1, 5, 3, 4, 2]
Output: NGE = [5, -1, 4, 5, 5]
Explanation: For the given array,
- The next greater element for 1 is 5.
- There is no greater element for 5 on the right side. So we consider NGE as -1.
- The next greater element for 3 is 4.
- The next greater element for 4 is 5, when we consider the next elements as 4 -> 2 -> 1 -> 5.
- The next greater element for 2 is 5, when we consider the next elements as 2 -> 1 -> 5.
Step 1: Told him the brute approach of looping twice nestedly and filling the resultant array; told him the time complexity O(n^2).
Step 2: Told him the new optimized approach using Stack; told him why using the stack improves it and why this came to my mind.
Step 3: Implemented it and told him the complexity.



Can you solve each query in O(logN) ?
Step 1: Went with brute force first to do a linear search, told him why it’s not a good approach.
Step 2: Optimized it by telling him binary search can be a way, related it to simple binary search but first divided it into portions where to search, depending upon where the target will lie.
Step 3: Told him the implementation, coded it, and explained the time complexity.



'S' = "{}()".
There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Introduce yourself briefly.
What do you mean by innovation?
What can you offer to us in terms of your past work?

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