LeadSquared interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

LeadSquared
upvote
share-icon
4 rounds | 11 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Data Structures and Algorithms, OOPS, OS, HTML, CSS, JAVASCRIPT, SQL, Networking, DBMS
Tip
Tip

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.

Application process
Where: Campus
Eligibility: Throughout 60 Percent With No Active Backlogs
Resume Tip
Resume tip

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.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date17 May 2022
Coding problem0

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

02
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date21 May 2022
Coding problem3

Technical Online Test of Lead Squared on 21 May, 2022 (Today) from 6:00-7:00 PM.

1. Merge Two Sorted Arrays

Moderate
15m average time
85% success
0/80
Asked in companies
HSBCHikeAmazon

Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to assume that ‘ARR1’ has a size equal to ‘M’ + ‘N’ such that ‘ARR1’ has enough space to add all the elements of ‘ARR2’ in ‘ARR1’.

For example:

‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’. 
‘ARR1’ = [3 4 6 9 10]
Problem approach

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< }
}

Try solving now

2. N Queue Using Array

Easy
15m average time
85% success
0/40
Asked in companies
AdobeShopeeAmazon

You will be given ‘N’ queries. You need to implement ‘N’ queues using an array according to those queries. Each query will belong to one of these two types:

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.
Note:
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.
Try solving now

3. Group Anagrams

Moderate
30m average time
70% success
0/80
Asked in companies
AmazonAtlassianThales

You have been given an array/list of strings 'inputStr'. You are supposed to return the strings as groups of anagrams such that strings belonging to a particular group are anagrams of one another.

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase. We can generalize this in string processing by saying that an anagram of a string is another string with the same quantity of each character in it, in any order.

Note:
The order in which the groups and members of the groups are printed does not matter.
For example:
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.
Problem approach

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< }
}

Try solving now
03
Round
Medium
Video Call
Duration45 Minutes
Interview date30 May 2022
Coding problem7

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.

1. SQL Question

Find Second Highest Salary in SQL

Problem approach

Tip 1 : Do practice for SQL queries.
Tip 2 : try to explain to them whatever you are thinking

2. Reverse Linked List

Easy
15m average time
85% success
0/40
Asked in companies
SprinklrHSBCLenskart
Note :
You do not need to print anything, just return the head of the reversed linked list. 
Problem approach

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

Try solving now

3. Move All Negative Numbers To Beginning And Positive To End

Easy
10m average time
90% success
0/40
Asked in companies
SAP LabsBarclaysPayU

You are given an array 'ARR' consisting of 'N' integers. You need to rearrange the array elements such that all negative numbers appear before all positive numbers.

Note:
The order of elements in the resulting array is not important.
Example:
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].
Try solving now

4. Generate all parenthesis

Moderate
30m average time
85% success
0/80
Asked in companies
FacebookExpedia GroupLinkedIn

You are given an integer 'N', your task is to generate all combinations of well-formed parenthesis having ‘N’ pairs.


A parenthesis is called well-formed if it is balanced i.e. each left parenthesis has a matching right parenthesis and the matched pairs are well nested.


For Example:

For ‘N’ = 3,
All possible combinations are: 
((()))
(()())
(())()
()(())
()()()
Problem approach

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.

Try solving now

5. OS Questions

what is deadlock?(Learn)
conditions for deadlock.(Learn)

6. HTML Questions

What is DOM?(Learn)
what is local storage and session storage?(Learn)

7. JavaScript Questions

What is closure in JS?(Learn)

04
Round
Easy
HR Round
Duration30 Minutes
Interview date3 Jun 2022
Coding problem1

Jun 3, 2022 5pm – 5:30pm (IST) 
Microsoft Teams Meeting

1. Basic HR Questions

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.

Problem approach

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
SDE - Intern
3 rounds | 3 problems
Interviewed by LeadSquared
1283 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15481 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes