Tip 1: Start writing code on various coding platforms as early as possible.
Tip 2: Begin practicing professional communication habits early by participating in events that foster growth.
Tip 1: Choose your resume format carefully, and after creating it, review it with a friend and seek feedback.
Tip 2: Have working projects that you can discuss in the interview, and avoid including information that you are not familiar with or aware of.
My first round of interviews started at 10 am. It was a video call via Zoom, during which I introduced myself. The interviewer informed me that he would ask two questions. He then instructed me to share my screen, open any code editor, and presented two coding problems.



Given an array of length N consisting of only 0s and 1s in random order. Modify the array to segregate 0s on the left and 1s on the right side of the array.
First I came up with a naive approach to use bubble sort or quick sort. He advised me to not use any algorithm. So, after thinking a little I came up with the approach of two pointers. I told about my approach to the interviewer He nodded and yes told me to implement the same.
function segregateZerosAndOnes(arr):
Step 1: Initialize pointers
left = 0
right = length(arr) - 1
Step 2: Traverse the array
while left <= right:
Step 3: Move the left pointer to find the first '1' from the left
while arr[left] == 0:
left++
Step 4: Move the right pointer to find the first '0' from the right
while arr[right] == 1:
right--
Step 5: Swap elements if necessary
if left <= right:
swap(arr[left], arr[right])
left++
right--
Step 6: The array is now segregated with '0's on the left and '1's on the right.
Step 7: After that, I was able to implement it. Interviewer was happy



Given an array arr[] of size N having distinct numbers sorted in increasing order and the array has been right rotated (i.e, the last element will be cyclically shifted to the starting position of the array) k number of times, the task is to find the value of k.
Just like the previous round, it was a video call conducted over Zoom. In the morning, I was first asked to introduce myself. The interview then proceeded to discuss my projects, aspirations, goals, and fit within the team and company culture.

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