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

Business Technology Analyst

Squadstack
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Aptitude, DSA, oops, Operating Systems, DBMS, Communication skills and group discussion
Tip
Tip

Tip 1 : Ok do 1 good project and 2 smaller projects, that looks good on resume
Tip 2 : Prepare your communication skills very well
Tip 3 : For GD, refer to some youtube videos and be strong in communication
Tip 4 : Practice DSA well, that goes without saying

Application process
Where: Campus
Eligibility: Above 8 cgpa
Resume Tip
Resume tip

Tip 1 : Don't include udemy, coursera certifications. only professional certifications counts
Tip 2 : Prepare it in a single page, and write only those skills that you own

Interview rounds

01
Round
Medium
Online Coding Interview
Duration75 minutes
Interview date4 Nov 2021
Coding problem0

100 MCQ questions of Aptitude

02
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date4 Nov 2021
Coding problem2

There were 4 Coding questions with choices in 2 of them, So basically , we were required to answer 3 questions in total.
as soon as you cleared your aptitude, you will receive a link for the coding exam.

1. All Paths From Source Lead To Destination

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

There is a directed graph consisting of ‘N’ nodes numbered from 0 to ‘N’-1. You are given a list ‘EDGES’ of size ‘M’, consisting of all the edges of this directed graph, and two nodes ‘SRC’ and ‘DEST’ of this graph. Determine whether or not all paths starting from node ‘SRC’ eventually end at node ‘DEST’, that is -:

1. At least one path exists from node ‘SRC’ to node ‘DEST’.

2. If there exists a path from the node ‘SRC’ to a node with no outgoing edges, then that node must be ‘DEST’.

3. There should be a finite number of paths from ‘SRC’ to ‘DEST’.

You should return True if all paths starting from node ‘SRC’ eventually end at node ‘DEST’, Otherwise, return False. See the example for more clarity.

Note :

1. The given graph may have self-loops and parallel edges.
Example :
Consider ‘N’ = 4, ‘EDGES’ = [[0, 1], [0, 3], [1, 2], [3, 2]],  ‘SRC’ = 0 and ‘DEST’ = 2. The given directed graph is shown below.

alt text

Here, all the paths that start from node 0 are -:
1. 0->1->2
2. 0->3->2
Both of these paths eventually end at node ‘2’ i.e node ‘DEST’. Thus we should return True.
Problem approach

I provided a dfs backtracking approach. The idea is simple. we have to search through every possibility from 0th index and if index n-1 is reached and then add the output to ans else try out other possibilities (if not).

Try solving now

2. Sum Of K Smallest Elements In BST

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

You are given a Binary search tree(BST) of integers and an integer ‘K’.

Your task is to find and return the sum of the first ‘K’ smallest elements of the BST.

Example:

alttext

For the given tree, ‘K = 3’.
The first ‘3’ smallest elements are 1, 3, and 4.

Sum of three smallest nodes in the BST = 1 + 3 + 4 = 8.
Thus, you should return ‘8’ as the answer.  
Problem approach

I provided recursive approach for this one. 
We have to first traverse BST in inorder traversal. While traversing, we check the count of visited nodes and keep adding nodes until the count becomes k.

Try solving now
03
Round
Hard
Face to Face
Duration90 minutes
Interview date5 Nov 2021
Coding problem2

It started of with a discussion about the projects and me and then continues with the discussion of the tech topics like system design , oops, programming basics and OS/dbms. Then he asked me about my interests and then we move to the coding round. The programming questions were not that hard but yes this interview was an intimidating experience.

1. 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.
Problem approach

We were discussing different approaches and he started modifying the question as soon as I solve it.
But i provided a solution in every step of the way. using sorting, sliding windows, normal traversals, merger sort, etc.

Try solving now

2. Zig-Zag Conversion

Moderate
0/80
Asked in companies
AmazonAdobePayPal

You are given a string ‘S’ and an integer ‘ROW’, convert the row into a zig-zag pattern with rows equal to ‘ROW’ and output it row-wise. You may refer to the example below to better understand what the zig-zag pattern means.

Example :
If ‘S’ = “beaninjacoder” and ‘ROW’ = 4

Then the zig-zag pattern is:
b         j        r
e     n   a     e
a   i     c   d
n         o

Therefore, we will print “bjrenaeaicdno”.
Problem approach

I used brute force. The approach I used to solve this problem is very simple :
Generate the order of zig-zag pattern.
Use a 2D array to hold the characters at there correct position.
Traverse in 2D array and store the visited characters in another string.
Return the string.

Try solving now
04
Round
Medium
HR Round
Duration45 minutes
Interview date7 Nov 2021
Coding problem1

It was a 30 minutes Group Discussion and some 5 min HR.

1. Basic HR Questions

1. Your goals and ambitions

2. Where do you see yourself after 5 years?

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 Intern
6 rounds | 9 problems
Interviewed by Squadstack
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1721 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes