Tip 1 : Always prepare with real time examples and know things from basic.
Tip 2 : Practice coding questions covering different types of problems instead of quantity of same type.
Tip 3 : Be thorough with the internship details.
Tip 1 : Have a related project to the job profile you are applying for.
Tip 2 : Have a good grasp of what you have written on your cv.
This round was conducted on amcat platform. It was in the morning. It consisted of aptitude, reasoning, programming related mcq and 2coding questions.



This can easily be solved using a hashmap



Input: ‘str1’ = “abcjklp” , ‘str2’ = “acjkp”.
Output: 3
Explanation: The longest common substring between ‘str1’ and ‘str2’ is “cjk”, of length 3.
I have solved in the similar fashion which is provided in the above link
This round had riddles based on analytical thinking, logical reasoning questions, pictorial representation questions. Some technical questions related to OS, Java, DSA were there. 2 problems were given for which the codes have to be written.



Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
Pretty straight forward answer related to sorting



You are given ‘ARR’ = [5, 2, 3]
In the first step, you can change 5 to 3, so the new array is [3, 2,3].
In the second step, you can change the 3 to 2, then the array is [2, 2,3].
In the third step, you can change the 3 to 2, then the array is [2, 2, 2]
Hence the answer is 3.
I have solved this problem using brute force method but the time complex solution can be found in the above link
Questions related to project, internship and coding were asked.
What is interface
Tip 1: It's just a theory question based on java but I was not comfortable in java at that time as I was from c++ background.



'arr '= [1,2,3,4,5]
'k' = 1 rotated array = [2,3,4,5,1]
'k' = 2 rotated array = [3,4,5,1,2]
'k' = 3 rotated array = [4,5,1,2,3] and so on.
This can be solved by dividing the array into different parts. Calculate the gcd between the length and distance to be moved. The elements are shifted within parts.
How do you find the least 10 scores of students in a class. There are two tables you need to join and get the result
Tip 1: I have used top keyword and sorted in ascending order.
Tip 2: joined the tables using left join
Questions related to second round written problems were asked. My brute force method was exposed and he asked me to try again but i couldn't give the efficienct solution.
I was not selected for this round.
Questions related to psychological thinking were asked and simple hr questions were asked as told by my friends who got selected.

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