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

Product Engineer

Squadstack
upvote
share-icon
8 rounds | 14 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: DSA, System Design, Machine Coding(LLD), System Design(HLD), Java Technical Question, DBMS
Tip
Tip

Tip 1 : Practice DSA
Tip 2 : Practice OOP
Tip 3 : Be honest

Application process
Where: Company Website
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Don't lie anything on your resume
Tip 2 : Keep it crisp and one page max

Interview rounds

01
Round
Easy
HR Round
Duration15 minutes
Interview date28 Jun 2021
Coding problem1

They called around afternoon to know more about me. It happened over a phone call. Don't lie about anything as they do some screening. Asked reason for change.

1. Basic HR Questions

Are you ready to relocate?

Why do you want to join us?

What are your strengths?

 

Problem approach

Tip 1: Tell them honestly whatever is the reason
Tip 2:
Tip 3:

02
Round
Medium
Online Coding Test
Duration150 minutes
Interview date3 Jul 2021
Coding problem5

Asked 5 coding questions on DSA. Total marks were 250. Each question has a different weightage. They give you around a week to complete the round.

1. Left View Of Binary Tree

Moderate
30m average time
60% success
0/80
Asked in companies
SAP LabsZSThought Works

You have been given a Binary Tree of 'n' nodes, where the nodes have integer values



Example :
If the input tree is as depicted in the picture: 

alt text

The Left View of the tree will be:  2 35 2 
Problem approach

I solved it using recursion

Try solving now

2. Find Duplicates In Array

Easy
15m average time
90% success
0/40
Asked in companies
LinkedInBNY MellonFreshworks

You are given an array/list 'ARR' consisting of N integers, which contains elements only in the range 0 to N - 1. Some of the elements may be repeated in 'ARR'. Your task is to find all such duplicate elements.

Note:
1. All the elements are in the range 0 to N - 1.
2. The elements may not be in sorted order.
3. You can return the duplicate elements in any order.
4. If there are no duplicates present then return an empty array.
Try solving now

3. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
SquadstackAmazonRazorpay

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.


For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86.


Given the array [-5, -1, -8, -9], the maximum sum would be -1.


Follow up: Do this in O(N) time.

Try solving now

4. Longest Common Subsequence

Moderate
0/80
Asked in companies
AmazonVisaRed Hat

You have been given two Strings “STR1” and “STR2” of characters. Your task is to find the length of the longest common subsequence.

A String ‘a’ is a subsequence of a String ‘b’ if ‘a’ can be obtained from ‘b’ by deletion of several (possibly, zero or all) characters. A common subsequence of two Strings is a subsequence that is common to both Strings.

Try solving now

5. Reverse Words In A String

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

You are given a string 'str' of length 'N'.


Your task is to reverse the original string word by word.


There can be multiple spaces between two words and there can be leading or trailing spaces but in the output reversed string you need to put a single space between two words, and your reversed string should not contain leading or trailing spaces.


Example :
If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
Problem approach

Practice Strings.

Try solving now
03
Round
Easy
HR Round
Duration20 minutes
Interview date7 Jul 2021
Coding problem1

Asks questions about your experience. Gives introduction to the role and what you'll be doing. Ask any questions about the company, culture or job.

1. Technical Question

Which tech stack have you worked on ?


 

Problem approach

Tip 1 : Just answer honestly. It doesn't matter if you have worked on a different tech stack than their job description
 

04
Round
Medium
Assignment
Duration120 minutes
Interview date14 Jul 2021
Coding problem1

1. OOPS

Design a parking lot system.

Problem approach

Tip 1 : Write neat code with comments. Also write the readme to explain your code.
 

05
Round
Easy
Video Call
Duration60 minutes
Interview date20 Jul 2021
Coding problem2

Asked technical questions around DBMS and Java.

1. DBMS Question

What are ACID properties.

Problem approach

Tip 1 : Read about DBMS concepts.

2. DBMS Question

What is an Inner Join?

06
Round
Easy
Video Call
Duration60 minutes
Interview date25 Jul 2021
Coding problem2

2 coding questions were asked in this round. It was easier than the previous online coding round.

1. Arithmetic Expression Evaluation

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

You are given a string ‘expression’ consists of characters ‘+’, ‘-’, ‘*’, ‘/’, ‘(‘, ‘)’ and ‘0’ to ‘9’, that represents an Arithmetic Expression in Infix Notation. Your task is to evaluate this Arithmetic Expression.

In Infix Notation, operators are written in-between their operands.

Note :
1. We consider the ‘/’ operator as the floor division.

2. Operators ‘*’ and ‘/’ expression has higher precedence over operators‘+’ and ‘-’ 

3. String expression always starts with ‘(‘ and ends with ‘)’.

4. It is guaranteed that ‘expression’ represents’ a valid expression in Infix notation.

5. It is guaranteed that there will be no case that requires division by 0.

6. No characters other than those mentioned above are present in the string. 

7. It is guaranteed that the operands and final result will fit in a 32-bit integer.
For example :
Consider string ‘expression’ = ‘((2+3)*(5/2))’. 
Then it’s value after evaluation will be ((5)*(2)) = 10. 
Problem approach

1. Split the string with regex matching + sign
2. Thus, every element in the resultant String array has either a single number or an expression of products.
3. Now traverse through the array to find indices having products.
4. Split the product expression with regex matching * sign
5. Now multiply every number that was split using * sign in Step 4.
6. Finally, every index has only numbers that need to be added for the final evaluation of an expression.
7. Add integers at all indices in the array received after Step 1.
8. The sum gives the final result of the expression string.

Try solving now

2. Covid Vaccination

Moderate
0/80
Asked in companies
BNY MellonOracleAmerican Express

We are suffering from the Second wave of Covid-19. The Government is trying to increase its vaccination drives. Ninja wants to help the Government to plan an effective method to help increase vaccination following safety measures. Time is running out. Can you help the nation?

You are given two positive integers: ‘n,’ ‘maxVaccines’ denoting the number of days for which this vaccination drive will go on and the total number of vaccines available for the drive, respectively. You have to find the number of vaccines administered each day. You are also given a number ‘dayNumber,’ and we are interested to know the maximum number of vaccines that can be administered on ‘dayNumber’ th day.

The rules of the vaccination drive :

1. There should be a positive number of vaccines administered each day during the vaccination drive.

2. The absolute difference between the number of vaccines in two consecutive days should not exceed 1.

3. The sum of all the elements of the vaccines array does not exceed maxVaccines, that is, you cannot administer more vaccines than what is provided to you.

4. Vaccines administered on ‘dayNumber’ th day should be maximized.

Try solving now
07
Round
Medium
Video Call
Duration60 minutes
Interview date27 Jul 2021
Coding problem1

It was a bar raiser round where they ask system design questions mostly around APIs and Databases.
Asked to create APIs and design tables.

1. System Design Question

They give a problem statement and ask to create different APIs according to the requirements. Also create db tables for the same. The APIs might need to join two tables.

Problem approach

Tip 1 : Read about APIs and Db design.
 

08
Round
Easy
HR Round
Duration60 minutes
Interview date30 Jul 2021
Coding problem1

Round with one of the founders to see for cultural fit. General questions about you, your journey, reason for change, priorities when looking for a job.

1. Basic HR Questions

What are the top 3 things you look for in a job?

Why do you want change?
 

Problem approach

Tip 1 : Don't lie and be honest. If you're not right for the company, then the company is also not right for you.
Tip 2 : Ask questions.
 

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
Product Engineer
4 rounds | 4 problems
Interviewed by Squadstack
3430 views
0 comments
0 upvotes
Product Developer
3 rounds | 9 problems
Interviewed by Squadstack
1435 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1721 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3319 views
0 comments
0 upvotes