Tip 1 : Be honest with the work you have done in projects
Tip 2 : Problem solving skills should be good, go through concepts of DSA
Tip 3 : Practice at least 60-70 coding problems on DSA and try to write coding in more efficient and readable way
Tip 1 : Go through Novoresume for template and place all the skills in proper manner and make sure to add the certificates
Tip 2 : Mention the work done in points so that proper keyword will get selected
Only one question is asked to solve and there are 50 test cases, use recursion in proper manner, practice that topic for many questions, 3 hours are enough to solve and it took me only 1 hour to solve.



I have been asked a lot of questions on my project work 2048 game and he asked me about the libraries which are been used. I was asked to write code for choosing probability for appearing of '2' and '4'. He was impressed with my problem solving skills and yeah you can also ask hints but dont get carried away, if he feels like you are good enough to catch the hints then he will ask you a bonus question. I skipped the bonus question as I thought that its syntax specific.
I was then given a code on nested loop and tell him what was its time complexity.
After that I was asked 3 coding questions and I have to implement and share the approach.
I have done it properly and he was impressed by my coding skills.



Consider the array { 1, 1, 0, 2, 0 }.
For the given array the modified array should be {0,0,1,1,2} .
Arrays { 0, 0, 1, 2, 1 } and { 0, 0, 2, 1, 1 } are not the correctly reorganized array even if they have all the zero values pushed to the left as in both the arrays the relative order of non-zero elements is not maintained.
Can you solve the problem in linear time, and constant space?
share the naive approach which is to sort and then tell him better approach which is to shift the zeroes using 2 pointer index



You may assume that the given array/list is non-empty and the majority element always exists in the array.
simply use map and store the frequency of the elements




simply asked about my family background and years gaps
Asked me about my family background and year gaps
What keeps you motivated?
Tip 1 : be honest
Tip 2 : make sure you have a good answer if there is gap

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?