Tip 1: Prepare data structures like DP, graphs, trees, binary search, stacks, and queues thoroughly; eventually, a question will be based on these.
Tip 2: Prepare all types of standard questions, as most companies will ask them.
Tip 3: Don't take theoretical topics lightly; they are of equal importance.
Tip 1: Add rankings; numbers play a huge role in shortlisting.
Tip 2: Have some knowledge about the projects you have done.
The online assessment (OA) for this role was held for all universities across India, with a common time window of 2-6 PM. This flexible timing allowed candidates to take the assessment at any time during this window, which was convenient. However, after a short period, many of the questions started circulating among peers, which made it easier for some candidates to get an idea of the questions in advance.Here were no strict proctoring measures, which meant that many candidates had the opportunity to discuss questions with friends during the exam window.



If the given ‘HEIGHT’ array is [10,20,30,10], the answer 20 as the frog can jump from 1st stair to 2nd stair (|20-10| = 10 energy lost) and then a jump from 2nd stair to last stair (|10-20| = 10 energy lost). So, the total energy lost is 20.
priority_queue< pair < int , int > >q;
vector < int > ans , ans1 ;
for (int i =0; i < n ; i++ )
q.push ( make_pair ( E[i] , i ) ) ;
int en = K ;
queue < int > reserve ;
while(!q.empty)
{
int en1=q.top().first;
int i=q.top().second;
q.pop();
if(en>H[i])
{
en=en+en1;
ans.push_back(en);
while(!reserve.empty())
{
int j=reserve.front();
reserve.pop();
q.push(make_pair(E[j],j));
}
}
else
reserve.push(i);
}
ans1.push_back(ans.size());
for(auto i:ans)
ans1.push_back(i);
return ans1;
}
45 mins for DSa, 15 mins for Googliness.



Input: NUM[] = {1,1,1,2,2,2}
Output: {1,2,1,2,1,2}
Note: {2,1,2,1,2,1} is also valid because there are no two adjacent which are the same.
45 mins for DSa, 15 mins for Googliness

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?