Tip 1 : Practice Leetcode/coding ninjas as much as possible
Tip 2 : Go through Past Interview Experiences
Tip 3 : Focus on your resume
Tip 1 : Be precise and focus on Quantitative Data
Tip 2 : Mention all the major projects which shows how much you have contributed towards your firm



‘X’ = { 00, 01, 02, 10, 11, 12, 20, 21, 22 }.
If there are more than one possible such strings, then you can output any of them.



solved using sieve theory of numbers



1. This is the DFS/BFS related problem. solved using DFS at first.
2. Interviewer was happy with the solution and asked further questions like what if surrounding is land rather than water. How will the solution change.



Each product can cross the integer limits, so we should take modulo of the operation.
Take MOD = 10^9 + 7 to always stay in the limits.
Can you try solving the problem in O(1) space?
1. solved using 3 arrays to maintain left product, right product, result.
2. Optimised by using just one array and tracking all product values side by side.
Design Music Player
Tip 1 : understand the requirements and ask questions to check what exactly one is looking out for.
Tip 2 : Follow the design patterns as much as you can.
Tip 3 : Follow the oops concepts
Design Netflix(Recommendation part)
Tip 1 : understand the requirements and ask questions to check what exactly one is looking out for.
Tip 2 : Follow the design patterns as much as you can.
Tip 3 : Follow the oops concepts
Design a system to get the max profit out of trade where you recommend whether to sell/buy stocks as per the current price .
Tip 1 : Explain data structures which one to use and why.
Tip 2 : Think thorough regarding complexity of data structures
Tip 3 : Follow oops concepts to design classes

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?