Tip 1 : Practice at least 350 coding questions
Tip 2 : Have a recent project
Tip 3 : Have good knowledge of OS,DBMS
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
1. He asked me to write an SQL query, “Given a table with duplicate rows, remove duplicate rows from table”. I was not able to solve this question.
2. He asked me to write an SQL query, “Given employee table with manager id, find manger id who manages highest number of employee”. I was able to solve using ‘group by’ and ‘count’.
3. What is normalisation and clustered index vs non-clustered index?
4. Asked me to write a multi-threaded program, “Create two thread, perform some operation on shared variable, avoiding race condition”, similar to producer-consumer problem. I was able to write code, but it did not working, maximam time was taken by this problem. At the end interviewer said to leave it because time was over.
1. How to read text file and show words of file in sorted order by their frequency.
2. Gave me a puzzle: three jars with fruits are incorrectly labeled, find the minimum number of trial to correctly label them, given that in one trial you can take fruit out from a jar.
3. What is a prime number? How to find a prime number?
4. Asked me what is my hobby.



1. Gave me one puzzle: 1000 light bulbs switched on/off by 1000 persons passing by
2. What is event driven programming? ( was not able to answer )
3. What is micro services? ( was not able to answer )
4. What improvement do you feel after leaving job and joining masters?



If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.

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?