Try to solve Data Structures and Algorithms-based questions on your own first before looking at the solution. Also, try to solve them as quickly as possible. Additionally, prepare for theoretical subjects like Operating Systems and Database Management Systems. I used Coding Ninjas' subjective notes for these topics, and they are highly accurate and up to the mark.
Keep your resume simple and complete. Mention some high-quality projects, your previous experiences, and any coding achievements you have.
This was the coding round with only one coding question containing 50 test cases, and one had to pass all test cases to clear this round.



If we have three balls placed at [ 1, 3, 4 ]



At first, move the ball from position ‘1’ to position ‘3’ with cost = 0.
Then move the ball from position ‘4’ to position ‘3’ with cost =1.
As the minimum cost = 1, so you need to print 1.
I simply used a greedy approach to solve this using two pointers.



To find a cycle, I simply use the two-pointer approach with slow and fast pointers. If they meet, there is a cycle in the loop.
Firstly, I explained the brute-force approach to the interviewer, where I considered each pair and their sum. Then, he asked me to optimize the time complexity. I used sorting and the two-pointer approach to solve the question. He then asked me to write the code, so I wrote a fully commented version for him. He made me dry-run it on a few test cases, and it produced the correct answers for all of them.



Where distance between two points (x1, y1) and (x2, y2) is calculated as [(x1 - x2) ^ 2] + [(y1 - y2) ^ 2].
The approach that came to my mind at that time was only brute force, so I asked the interviewer for a hint. He suggested using divide and conquer, but I couldn't figure it out and was unable to solve the question.
Face to face HR round
Tip 1: Gave him my basic introduction, including my name, family background, hobbies, and interests.
Tip 2: Told him about the difficulties I am facing in managing the team for a college-related project, which mainly involves juniors who have less knowledge of the technology used in the project.

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?