Tip 1 : Practice a lot of programming problems. Participate in competitive programming contests.
Tip 2 : Make sure you have your computer science fundamentals very clear and maintain a decent CGPA.
Tip 3 : Do couple of real problem-solving projects.
Tip 1: Maintain a precise and self-explanatory one-page resume.
Tip 2: Avoid including non-technical achievements (e.g., 1st place in dancing or singing competitions, etc.).



If there exists no subarray in the given sequence whose sum is divisible by ‘K’ then simply return ‘0’.
Suppose the given array is ‘ARR’ = { 5, 0, 2, 3, 1} and ‘K = 5’.
As we can see in below image, there are a total of 6 subarrays that have the total sum divisible by ‘K’
So we return the integer 6.

I solved it using a HashMap. It's a pretty standard problem and can also be found easily on the internet.



If the given sequence ‘ARR’ has ‘N’ elements then the sorted wave array looks like -
‘ARR[0] >= ARR[1]’ and ‘ARR[1] <= ARR[2]’
‘ARR[2] >= ARR[3]’ and ‘ARR[3] <= ARR[4]’
‘ARR[4] >= ARR[5]’ and ‘ARR[5] <= ARR[6]’ And so on.
1. ‘ARR[0]’ must be greater than or equal to ‘ARR[1]’.
2. There can be multiple arrays that look like a wave array but you have to return only one.
3. We have an internal function that will check your solution and return 'True' in case your array is one of the solutions otherwise return 'False'.
The given array ‘ ARR = { 4, 3, 5, 2, 3, 1, 2 } ’
The below figure is a visual representation of the given ‘ARR’ and you can see we can express ‘ARR’ in a waveform array because
4>3 and 3<5
5>2 and 2<3
3>1 and 1<2
And it follows the condition of wave array.

Try to solve this problem in linear time complexity.
Sorted the array and then swapped the adjacent elements in groups of size 2.



I tried to use HashMap to store some values as a part of pre-processing and then build up some approach, couldn't code it completely.



1. If the size of the linked list is 1 then return the head
2. Find mid using The Tortoise and The Hare Approach
3. Store the next of mid in head2 i.e. the right sub-linked list.
4. Now Make the next midpoint null.
5. Recursively call mergeSort() on both left and right sub-linked list and store the new head of the left and right linked list.
6. Call merge() given the arguments new heads of left and right sub-linked lists and store the final head returned after merging.
7. Return the final head of the merged linkedlist.
Introduce yourself.
Later, I was briefly asked about my internship, what my role was, and how I managed conflicts.
I was asked why I am choosing Mindtree and what qualities Mindtree has that make it different from other companies.
Later, I was asked whether I am okay with relocation.
At the end, he told me about himself, gave a brief introduction about the company, role, and salary, and asked whether I have a PAN card.
Tip 1 : Do a background research and state some of the facts like number of employee, CEO etc.
Tip 2 : Tell about work culture in their company.
Tip 3 : research about their different ethics of features that make them stand out among other companies.

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: