Tip 1 : Make a document where you can add answers to those questions which you think the interviewer can ask you about your resume.
Tip 2 : Practise data structures and algorithms questions properly.
Tip 3 : Have a deep understanding of all core subjects.
Tip 1 : Have a 1 page resume only.
Tip 2 : Focus more on work experiences and skills.
It was conducted as an online round.The test duration was 60 minutes consisting of two coding questions.



Input: Consider the binary tree A as shown in the figure:

Output: [10, 5, 3, 7, 18, 25, 20]
Explanation: As shown in the figure
The nodes on the left boundary are [10, 5, 3]
The nodes on the right boundary are [10, 20, 25]
The leaf nodes are [3, 7, 18, 25].
Please note that nodes 3 and 25 appear in two places but are considered once.
1. Print the left boundary in a top-down manner.
2. Print all leaf nodes from left to right, which can again be sub-divided into two sub-parts:
Print all leaf nodes of left sub-tree from left to right.
Print all leaf nodes of right subtree from left to right.
3. Print the right boundary in bottom-up manner.



A pair ('ARR[i]', 'ARR[j]') is said to be an inversion when:
1. 'ARR[i] > 'ARR[j]'
2. 'i' < 'j'
Where 'i' and 'j' denote the indices ranging from [0, 'N').
Traverse through the array, and for every index, find the number of smaller elements on its right side of the array. This can be done using a nested loop. Sum up the counts for all index in the array and print the sum.
Usually, companies asked questions mainly based on OOPS, DBMS, Low-Level Design using OOP, and Database Design using SQL Queries. But be prepared with all the CS Subjects because you never know what the interviewer will ask you during the interview.
What is the difference between process and threading?
Tip 1: For Operating System, I have used Love Babbar CheatSheet, InterviewBit, and Gate Smashers OS Playlist. You can also refer Sanchit Jain Playlist
Tip 2 : Try to answer exactly and with some example



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] overlaps, we 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;
}

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?