Tip 1 : Always remember for SDE position, DSA is your root.
Tip 2 : Rest everything you are good at will work as add-on
Tip 3 : Be as relaxed as possible during your interview and always keep communicate whatever is going on in your head.
Tip 1 : Mention only those things that you know by heart.
Tip 2 : Update your resume regularly like your projects and CGPAs.
Tip 3 : Update it according to the job you are applying for.
It was a complete MCQ aptitude test round.
50 MCQS
It was aptitude round. which was divided into 6 sections. mental ability, cognitive reasoning, abstract reasoning, spatial reasoning, english, logical reasoning
Date;- 17-5-2022
Time;- 6:00 PM
Technical Online Test of Lead Squared on 21 May, 2022 (Today) from 6:00-7:00 PM.



‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’.
‘ARR1’ = [3 4 6 9 10]
void solve()
{
int n, m;
cin>>n>>m;
vector a(n), b(m);
for(int i=0;i>a[i];
}
for(int i=0;i>b[i];
}
vector ans(n+m);
int i=0, j=0, k=0;
while(i < n && j < m)
{
if(a[i] < b[j])
{
ans[k++] = a[i++];
}
else
{
ans[k++] = b[j++];
}
}
while(i < n)
{
ans[k++] = a[i++];
}
while(j < m)
{
ans[k++] = b[j++];
}
for(int i=0;i {
cout< }
}


1 ‘X’ N: Enqueue element ‘X’ into the end of the nth queue. Returns true if the element is enqueued, otherwise false.
2 N: Dequeue the element at the front of the nth queue. Returns -1 if the queue is empty, otherwise, returns the dequeued element.
Please note that Enqueue means adding an element to the end of the queue, while Dequeue means removing the element from the front of the queue.



The order in which the groups and members of the groups are printed does not matter.
inputStr = {"eat","tea","tan","ate","nat","bat"}
Here {“tea”, “ate”,” eat”} and {“nat”, “tan”} are grouped as anagrams. Since there is no such string in “inputStr” which can be an anagram of “bat”, thus, “bat” will be the only member in its group.
void solve()
{
int n;
cin>>n;
vector a;
for(int i=0;i>s;
a.push_back(s);
}
map> m;
for(int i=0;i> ans;
for(auto ele: m)
{
vector temp;
for(auto str: ele.second)
{
temp.push_back(str);
}
ans.push_back(temp);
}
for(auto ele: ans)
{
for(auto str: ele)
{
cout< }
cout< }
}
May 30, 2022 4pm – 4:45pm (IST).
There were two interviewees in the video meeting and both were very friendly and cooperative. they will ask you what are you good at and then grind you on that basis. they will ask you some role-specific questions too.
Find Second Highest Salary in SQL
Tip 1 : Do practice for SQL queries.
Tip 2 : try to explain to them whatever you are thinking



You do not need to print anything, just return the head of the reversed linked list.
They wanted to see if you know how to implement the linkedlist.
I gave them an Iterative approach to solve it.
step 1- Initialize three pointers prev as NULL, curr as head and next as NULL.
step 2- Iterate through the linked list. In loop, do following.
// Before changing next of current,
// store next node
next = curr->next
// Now change next of current
// This is where actual reversing happens
curr->next = prev
// Move prev and curr one step forward
prev = curr
curr = next



The order of elements in the resulting array is not important.
Let the array be [1, 2, -3, 4, -4, -5]. On rearranging the array such that all negative numbers appear before all positive numbers we get the resulting array [-3, -5, -4, 2, 4, 1].



For ‘N’ = 3,
All possible combinations are:
((()))
(()())
(())()
()(())
()()()
To form all the sequences of balanced bracket subsequences with n pairs. So there are n opening brackets and n closing brackets.
So the subsequence will be of length 2*n. There is a simple idea, the i’th character can be ‘{‘ if and only if the count of ‘{‘ till i’th is less than n and i’th character can be ‘}’ if and only if the count of ‘{‘ is greater than the count of ‘}’ till index i. If these two cases are followed then the resulting subsequence will always be balanced.
So form the recursive function using the above two cases.
What is closure in JS?(Learn)
Jun 3, 2022 5pm – 5:30pm (IST)
Microsoft Teams Meeting
He asked me about my experience in the last interview and what I learned from it.
he asked me what I know about the company.
How company's product will be helpful for any university?
where we can see people using the company's product and for what purposes.
Tip 1 : Be honest
Tip 2 : Show a positive attitude
Tip 3 : show them that you are good at improving yourself and you take critical feedback positively.

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