Tip 1 : Make project on trending technologies
Tip 2 : Be well versed with the basics of coding
Tip 1 : Use simple template
Tip 2 : Bold the tech used in the projects
Aptitude + coding round



You do not need to print anything, just return the head of the reversed linked list.
-use a prev pointer
-iterate till the end and change the link of curr.next = prev
-and update prev to curr and curr to next



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.
use a slow pointer and a fast pointer
increment slow as slow.next and fast as fast.next.next
until fast.next != null or fast.next.next == null
return slow;
I was asked OOPS, Data structures application in real life, Time complexity of sorting algorithms, Sql queries, a coding question.



‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’.
‘ARR1’ = [3 4 6 9 10]
Use two pointers one from index = 0 in first array and other from index = 0 in second array,
make an answer array of size length of first array + length of second array
now by comparing the values of arr1[idx1] and arr2[idx2]
fill the answer array and return the ans array
What are your strength and weakness?
Tell me about your family. Why Nagarro?
Have you ever worked in a team?
Do you hold any other offer from any company?

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?