Tip 1: Practice coding problems daily on online platforms to improve your problem-solving speed and accuracy.
Tip 2: Focus on strengthening communication skills by doing mock interviews, which helps in explaining your thoughts clearly and confidently.
Tip 1: Highlight Relevant Projects Clearly - Describe 1-2 key projects using the STAR method (Situation, Task, Action, Result), emphasizing your role, technologies used, and measurable impact. This shows practical experience and problem-solving skills.
Tip 2: Tailor Your Resume to company’s Values - Include keywords like teamwork, integrity, and innovation. Showcase any leadership, collaboration, or ethical decision-making examples that align with company’s culture.
30 MCQs were asked on communication and aptitude. And two coding problems.



Input: ‘N’ = 5, ‘TARGET’ = 5
‘BOOK’ = [4, 1, 2, 3, 1]
Output: YES
Explanation:
Sam can buy 4 pages book and 1 page book.
Understand the problem:
Find two distinct indices i and j such that nums[i] + nums[j] = target.
Naive approach:
Check every pair (i, j) to see if they add up to target. This takes O(n²) time.
Optimized approach using a hash map:
Initialize an empty hash map (dictionary) to store numbers and their indices.
Iterate over the array:
For the current number num, calculate complement = target - num.
Check if complement exists in the hash map.
If yes, return indices [hash_map[complement], current_index].
If no, store the current number and index in the hash map.
Why this works:
Hash map lookup is O(1), so total time complexity is O(n).



Reverse a Linked List
Given the head of a singly linked list, reverse the list and return the new head.
Example:
Input: 1 -> 2 -> 3 -> 4 -> 5 -> None
Output: 5 -> 4 -> 3 -> 2 -> 1 -> None
Understand the problem:
You need to reverse the direction of the next pointers in the linked list so the list is reversed.
Approach:
Use three pointers:
prev initially None
current starting at the head
next_node to store the next node temporarily
Algorithm:
Iterate through the list while current is not None:
Store current.next in next_node.
Point current.next to prev (reverse the link).
Move prev to current.
Move current to next_node.
When done, prev will be the new head.
Time Complexity: O(n), where n is the number of nodes.
Tip 1: Try to initiate the GD and also give others a chance to speak.
Tip 2: Address others by their name and try to pick the conversation.
Find the second highest salary from the Employee table. (Practice)
What is a deadlock in operating systems? Explain the necessary conditions for a deadlock to occur. (Learn)



Detect a Cycle in a Linked List
Given the head of a singly linked list, determine whether the list has a cycle in it.
A cycle occurs when a node’s next pointer points to a previous node in the list (forming a loop).
You must solve it using O(1) extra space.
Step 1: Understand the Requirement
We can’t use extra space (e.g., hash sets).
We must detect if a cycle exists.
If there’s no cycle, traversal will end at NULL.
✅ Step 2: Initialize Two Pointers
Create two pointers:
slow pointer — starts at head
fast pointer — starts at head
✅ Step 3: Traverse the List
Move slow one step at a time (slow = slow.next)
Move fast two steps at a time (fast = fast.next.next)
✅ Step 4: Detect the Cycle
If at any point slow == fast, a cycle exists.
If fast or fast.next becomes NULL, there is no cycle.
✅ Step 5: Return the Result
If a cycle is found: return True
If traversal ends: return False
This was basic HR round with some puzzle questions also asked.
The Three Switches and the Bulb
You are standing outside a closed room. Inside the room is a single light bulb.
Outside the room, there are three switches, all in the OFF position.
Only one of the switches controls the bulb; the other two do nothing.
You may do the following actions:
You can set the switches however you like.
You can enter the room only once to check the bulb.
You must determine which switch controls the bulb.
How do you figure out exactly which switch controls the bulb in one try?

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?