Tip 1: Practice 300 problems of medium difficulty from all data structure topics, such as graphs, trees, linked lists, stacks/queues, etc.
Tip 2: Be prepared with 3 projects (don’t copy them from anywhere). They can be from any area, such as web development, blockchain, or even ML. But whatever you have made, be thoroughly prepared with the tech stack you used, why you chose it, and any challenges you encountered while working on the project.
Tip 3: Be prepared with core computer science subjects like operating systems and DBMS, as small concepts will be asked. Also, puzzles will play a crucial role in the HR round.
Tip 1: Have some internship experience on the resume and prepare what all work you have done their with challenges faced.
Tip 2: Have at least 2 project any area like web dev, blockchain or even AI/ML.

I followed the Recursive Gate Opening approach, where I opened each gate one by one, assigning fishermen to the nearest unoccupied spots. I minimized the distance for each gate by placing fishermen at the closest spots, checking both left and right for the minimum distance. If two spots were equally close, I assigned fishermen symmetrically. After each configuration, I reset the spots and tried a new gate-opening sequence to explore all possibilities using backtracking. Finally, by traversing, I tracked the smallest total walking distance across all possible ways to determine the answer.



Input: 'n' = 3, 'k' = 2 and 'arr' = {1, 2, 3}
Output: 2
Explanation: The maximum possible minimum distance will be 2 when 2 cows are placed at positions {1, 3}. Here distance between cows is 2.
I used binary search to solve this problem. We try to find the largest minimum distance between cows by performing binary search on the possible distances between cows (ranging from 0 to the largest gap between stalls).



In the given linked list, there is a cycle starting at position 0, hence we return 0.

I use two pointers: a slow pointer and a fast pointer. Initially, both pointers are set to the head of the linked list. The fast pointer moves twice as quickly as the slow pointer. If there is a cycle in the linked list, the fast pointer will eventually catch up to the slow pointer. If there is no cycle, the fast pointer will reach the end of the linked list.
Tip 1: The operating system is the most important of all core subjects; prepare for it as your first priority.
Tip 2: Go through all the algorithms used in OS CPU scheduling.
Timing: 30 minutes
Two HRs were present.
I was asked to bring a hard copy of my resume.
The interviewers were friendly.
They asked me 2 puzzles:
Tip 1: Be confident during the HR round.
Tip 2: If you get stuck, you can ask the HR for a hint; it is totally fine.

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?