Tip 1 : Prepare some Projects
Tip 2 : Practice At least 250 Questions of DS algo
Tip 3 : Do at least 2 application based projects
Tip 1 : add some application based projects in your resume.
Tip 2 : Do not put false things on resume.
Conceptual and Code Analysis based MCQ and after that there was a coding challenge.



Each pair should be sorted i.e the first value should be less than or equals to the second value.
Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
Sorting and Two-Pointers technique :-
Approach: A tricky approach to solve this problem can be to use the two-pointer technique. But for using two pointer technique, the array must be sorted. Once the array is sorted the two pointers can be taken which mark the beginning and end of the array respectively. If the sum is greater than the sum of those two elements, shift the right pointer to decrease the value of the required sum and if the sum is lesser than the required value, shift the left pointer to increase the value of the required sum.



Do not allocate extra space for another array. You need to do this by modifying the given input array in place with O(1) extra memory.
'n' = 5, 'arr' = [1 2 2 2 3].
The new array will be [1 2 3].
So our answer is 3.
Create an auxiliary array temp[] to store unique elements.
Traverse input array and one by one copy unique elements of arr[] to temp[]. Also keep track of count of unique elements. Let this count be j.
Copy j elements from temp[] to arr[] and return j
Basic Hr Questions were asked. I was also asked about some questions from DS algo + DBMS. Few Aptitude questions were asked and few questions on Project were also asked


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.
Traverse linked list using two pointers. Move one pointer by one and the other pointers by two. When the fast pointer reaches the end slow pointer will reach the middle of the linked list.
Suppose that you are trapped on the surface of a frozen lake. The surface is so smooth and ideal that there is no friction at all. You cant make any grip on the ice and no wind is blowing to help you out. You have just a mobile phone with you which has got no reception disabling you to call for help. How will you plan your escape before you freeze to death on the frozen lake?
Step-by-step explanation:
Well as there is no friction, the ice would be slippery. It would automatically make you slide towards the ends as there is no friction to stop you.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: