Tip 1: Be consistent—solving even 1-2 problems daily makes a difference.
Tip 2: Know your projects inside out—this demonstrates real-world experience.
Tip 1: Have strong and relevant projects on your resume.
Tip 2: Do not list false skills.



Pattern for ‘N’ = 5:

‘N’ is always odd.
Given two hourglasses of 4 minutes and 7 minutes, the task is to measure 9 minutes.
A car has four tires and one spare tire. Each tire can travel a maximum distance of 20,000 km before wearing out. What is the maximum distance the car can travel before you are forced to buy a new tire? You are allowed to change tires (using the spare tire) an unlimited number of times.
In-depth discussion of the projects mentioned in the resume.
Difference between an Array and an ArrayList. (Learn)
There is a room with a closed door and three light bulbs inside. Outside the room, there are three switches connected to the bulbs. You may manipulate the switches as you wish, but once you open the door, you cannot change them. All bulbs are in working condition, and you can open the door only once. Identify each switch corresponding to its bulb.
You are blindfolded, and 10 coins are placed in front of you on the table. You are allowed to touch the coins but cannot determine which side is facing up by feel. You are told that 5 coins are heads up and 5 coins are tails up, but you do not know which ones.
Can you create two piles of coins, each with the same number of heads up? You may flip the coins any number of times.


Input: Queries:
[ 1 2,
1 7,
2,
1 13,
2,
2,
2 ]
Output:
[ 2,
7,
13,
-1 ]
Explanation: After each operation, our queue is equal to the following:
1 2: {2}
1 7: {2, 7}
2: {7} and 2 is printed
1 13: {7, 13}
2: {13} and 7 is printed
2: {} and 13 is printed
2: {} and -1 is printed since the queue is empty.


1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.



Consider ARR = [“coding”, ”codezen”, ”codingninja”, ”coders”]
The longest common prefix among all the given strings is “cod” as it is present as a prefix in all strings. Hence, the answer is “cod”.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?