Tip 1 : Prepare basic, easy and medium DSA Questions.
Tip 2 : Know well about your project written on resume.(Do atleast one project in your comfortable programming language)
Tip 1 : Mention at least one project in your resume.
Tip 2 : Limit your resume to one or two page only.
Tip 3 : Mention about your accomplishment and work done in past related to the job description.
1 Round(HackerEarth coding Round): It was a online Coding round with having 5 MCQ based questions on OOPS + 2 coding question based on Array and String (medium difficulty). I am not able to recall the questions exactly. It was time based round and has a limit of 60 minutes.



Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]
Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]
Explanation: The array is sorted in increasing order.



You are given, ‘str’= ‘codingninjas’, when we split this string we get, ‘coding’ and ‘ninjas’ which both contain 2 vowels each. Hence the answer is ‘True’.
I have used regular expression for splitting the string.
2 Round(1st Technical ): It was a Face to Face technical round with a senior employee of Unthinkable Solutions and Interviewer asked me question on problem solving skills and a puzzle. Interviewer was very interactive and asked few questions on MySQL. This round goes for 30-45 minutes.
You have a birthday cake and have to cut it into 8 equal pieces by making 3 cuts only. How do you do it?
Tip 1 : Understand the question thoroughly and look for all possible answers, it could have. if you are sure with one solution that can solve this problem, tell that to the interviewer.
Tip 2 : Look for alternative solutions as well because a puzzle can have multiple correct answer.



A majority element is an element that occurs more than floor('N' / 2) times in the array.
Tip 1 : Brush up your DBMS concept
Tip 2 : Focus on your college lectures
3 Round (2nd Technical and Managerial Round): This round was again with a senior employee of Unthinkable solutions. He asked me questions on Trees and string. Also, questions on my project mentioned in my resume and this round goes for 30 minutes.



If a string has 'x' repeated 5 times, replace this "xxxxx" with "x5".
The string is compressed only when the repeated character count is more than 1.
Consecutive count of every character in the input string is less than or equal to 9. You are not required to print anything. It has already been taken care of. Just implement the given function and return the compressed string.
I took a variable count initialized with 1, output_length with 0 and loop over the string from index 1 to n and checked if the previous string is same as current string then increased a count by 1 else, append the previous char and count into result string.
Tip 1 : Brush up your DBMS concept
Tip 2 : Focus on your college lectures



If the Inorder traversal of given tree is sorted, then this tree is BST.
I found the Inorder traversal of BST and checked is it a sorted array or not.
4 Round(HR Round): In this Round HR asked me basic question about myself. It was again a 30 minutes round.
Tip 1 : Answer with confidence.
Tip 2 : Be Polite while answering.

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?