Tip 1: Strengthen your fundamentals before jumping to advanced topics.
Tip 2: Practice coding consistently and focus on writing clean, optimized solutions.
Tip 3: Build at least 1–2 practical projects to confidently explain your concepts in interviews.
Tip 1: Mention only the skills and technologies you have actually worked on and can confidently explain.
Tip 2: Highlight practical projects and clearly describe your contributions and impact instead of just listing technologies.
The online assessment consisted of an aptitude (MCQ) section and a coding section, with a total duration of 90 minutes. It was conducted during the day in a well-managed and calm environment. The instructions were clear, and the platform ran smoothly without any technical issues. The aptitude section tested logical reasoning and basic quantitative skills, while the coding section focused on problem-solving and implementation. Overall, the experience was structured and time-bound, requiring good speed and accuracy.



1. If ‘k’ is not present in 'arr', then print -1.
2. There are no duplicate elements present in 'arr'.
3. 'arr' can be rotated only in the right direction.
Input: 'arr' = [12, 15, 18, 2, 4] , 'k' = 2
Output: 3
Explanation:
If 'arr' = [12, 15, 18, 2, 4] and 'k' = 2, then the position at which 'k' is present in the array is 3 (0-indexed).
Step 1:
Initially, I considered using linear search. That would take O(n) time, but since the problem required O(log n), this approach was not optimal.
Step 2:
Since the array was originally sorted, I realized that binary search could be used. However, due to rotation, the array is split into two sorted halves.
Step 3:
During binary search, I calculated mid = (low + high) / 2.
Then, I checked which half (left or right) was sorted:
If nums[low] ≤ nums[mid], then the left half is sorted.
Otherwise, the right half is sorted.
Step 4:
If the target lies within the sorted half, I moved the search to that half.
Otherwise, I searched in the other half.
Step 5:
I repeated this process until I found the target or the search space became empty.
This approach maintains O(log n) time complexity.



1. You can not slant the container i.e. the height of the water is equal to the minimum height of the two lines which define the container.
2. Do not print anything, you just need to return the area of the container with maximum water.

For the above Diagram, the first red marked line is formed between coordinates (2,0) and (2,10), and the second red-marked line is formed between coordinates (5,0) and (5,9). The area of water contained between these two lines is (height* width) = (5-2)* 9 = 27, which is the maximum area contained between any two lines present on the plane. So in this case, we will return 3* 9=27.
Step 1:
Initially, I considered checking all possible pairs of lines using two nested loops. This brute-force approach would take O(n²) time, which is inefficient for large inputs.
Step 2:
Then, I observed that the width is determined by the distance between two pointers, and the height is determined by the minimum of the two heights.
Area = min(height[left], height[right]) × (right - left)
Step 3:
I applied the two-pointer approach:
Initialize left = 0
Initialize right = n - 1
Step 4:
Calculate the area for the current pointers. Then move the pointer with the smaller height inward because:
Step 5:
Repeat this process while left < right, and keep updating the maximum area.
This reduces the time complexity to O(n).
The technical interview was conducted during the day in a smooth and professional environment. The discussion was interactive and focused mainly on core concepts, problem-solving approaches, and project understanding. The interviewer was calm and supportive and provided hints whenever required. It felt more like a technical discussion than a rapid-fire round, which helped me stay confident and explain my thoughts clearly.



In the given linked list, there is a cycle, hence we return true.

Step 1:
Initially, I considered storing visited nodes in a HashSet. While traversing the linked list, if a node was already present in the set, it indicates a cycle. This approach works but requires O(n) extra space.
Step 2:
Then, I optimized the solution using Floyd’s Cycle Detection Algorithm (the Tortoise and Hare approach), which works in O(1) space.
Step 3:
I used two pointers:
Step 4:
If there is a cycle, the fast pointer will eventually meet the slow pointer.
If the fast pointer reaches null, then there is no cycle.
This optimized approach runs in O(n) time and O(1) space.
The HR round was conducted during the day in a comfortable and friendly environment. It was more of a conversational discussion rather than a formal interrogation. The HR representative was polite, approachable, and focused on understanding my background, strengths, career goals, and cultural fit for the organization. The overall atmosphere was positive and stress-free, which helped me express myself confidently and honestly.
The questions were mainly HR and personality-based. Some of them included:
The focus was on understanding my personality, mindset, communication skills, and cultural fit.
I answered honestly and kept my responses structured and concise. For strengths and weaknesses, I provided practical examples instead of generic answers. I focused on demonstrating a growth mindset, a willingness to learn, and consistency in my efforts. Most importantly, I maintained confidence, clarity, and a positive attitude throughout the conversation.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which data structure is used to implement a DFS?