Tip 1 : Practice atleast 300+ coding problems from leetcode and codeshef
Tip 2 : Share your thought process while solving coding question during the interview
Tip 3 : Prepare 2 good projects and do at least one internship
Tip 1 : Resume should be simple, crisp, well written and make it a one page resume
Tip 2 : Mention only those skills in which you have knowledge in depth
This round has been taken on the Amcat platform in which 9 MCQs were there based on the coding and two medium level questions.



For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].
Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].
Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].
Interval [10, 12] does not overlap with any interval.
Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
vector merge(vector& ins) {
if (ins.empty()) return vector{};
vector res;
sort(ins.begin(), ins.end(), [](Interval a, Interval b){return a.start < b.start;});
res.push_back(ins[0]);
for (int i = 1; i < ins.size(); i++) {
if (res.back().end < ins[i].start) res.push_back(ins[i]);
else
res.back().end = max(res.back().end, ins[i].end);
}
return res;
}
This was a technical round completely based on problem solving. Interviewer were very friendly and they helped whenever I got struck at any step.



An array ‘B’ is a subarray of an array ‘A’ if ‘B’ that can be obtained by deletion of, several elements(possibly none) from the start of ‘A’ and several elements(possibly none) from the end of ‘A’.



You are given, ‘ARR’ =[4, 3, 5, 1, 4, 5], and ‘K’ = 5. In the given array the pair sums divisible by ‘K’ are [4,1], [5, 5], [4, 1]. Since there are a total of 3 pairs, the answer is 3.
This was 2nd technical round and some behavioral interview questions were also asked in this interview round


3,5 and 5,3 are not distinct combinations.



Let 'S' is 121. Then the nearest integers are 111 and 131 which are palindrome. Both have the same absolute difference but 111 is smaller. Hence 111 is the answer.

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