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

SDE - 2

Indeed
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: DSA, Graphs, DP, Linked List, System Design,
Tip
Tip

Tip 1 : Prepare with DSA very well
Tip 2 : Focus on system design

Application process
Where: Linkedin
Resume Tip
Resume tip

Tip 1 : Be clear with the resume
Tip 2 : Write only those things that you know in your resume

Interview rounds

01
Round
Easy
Face to Face
Duration60 minutes
Interview date1 Jun 2022
Coding problem2

1. Count Number of Subsequences

Moderate
15m average time
85% success
0/80
Asked in companies
Goldman SachsHCL TechnologiesAmazon

Given an array of non-negative integers ‘A’ and an integer ‘P’, find the total number of subsequences of ‘A’ such that the product of any subsequence should not be more than ‘P’.

A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.
Note
You need to print your answer modulo 10^9 + 7.
For Example
Let us take  A = [1,2,3] and P = 4. 
All the subsequences not having product more than ‘4’ are {1}, {2}, {3}, {1,2}, {1,3}. Therefore count is equal to ‘5’.
Problem approach

simply count the letters in string and check it in the word list

Try solving now

2. Word Search - l

Moderate
30m average time
60% success
0/80
Asked in companies
OlaGoldman SachsIBM

You are given a 2D board('N' rows and 'M' columns) of characters and a string 'word'.


Your task is to return true if the given word exists in the grid, else return false. The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring.


Note:
The same letter cell should not be used more than once.
For Example:
For a given word “design” and the given 2D board 
[[q’, ‘v’, ‘m’, ‘h’],
 [‘d’, ‘e’, ‘s’, ‘i’],
 [‘d’, ‘g’, ‘f’, ‘g’],
 [‘e’, ‘c’, ‘p’, ‘n’]]

The word design can be formed by sequentially adjacent cells as shown by the highlighted color in the 2nd row and last column.

board

Problem approach

No need for trie based approach as the focus is on the completion of the code. Just try to iterate it in a normal fashion and once you find the required characters go on storing the locations too.

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date1 Jul 2022
Coding problem2

1. Root to Leaf Path

Moderate
25m average time
70% success
0/80
Asked in companies
OracleUberAmazon

Ninja is having a good time in solving new questions of Binary Trees from Code Studio. He is now encountered with a question having statement as "You are given a binary tree consisting of 'N' nodes numbered from 1 to 'N'. Your task is to print all the root to leaf paths of the binary tree".

Ninja is stuck into this problem and could not able to find the logic. Help Ninja in solving the problem.

Note :

A leaf of a Binary Tree is the node which does not have a left child and a right child.
For Example :
Given a binary tree :

alt txt

All the root to leaf paths are :
1 2 4
1 2 5 
1 3

Note :

1. Two nodes may have the same value associated with it.
2. The root node will be fixed and will be provided in the function.
3. Note that the nodes in a path will appear in a fixed order. For example, 1 2 3 is not the same as 2 1 3.
4. Each path should be returned as a string consisting of nodes in order and separated by a space.
5. The path length may be as small as ‘1’.
Problem approach

Simply go with DFS and calculate the sum.

Try solving now

2. Graph Valid Tree

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

You are given N nodes labelled from 0 to N - 1 and a list of undirected edges( each edge is a pair of nodes). Your task is to find out if these edges make a valid tree. If they make a valid tree return true, else return false.

Tree is a special graph. It has the following properties.

• It is connected
• It has no cycle.

Example :

If n = 5 and if there are 4 edges i.e [ [0, 1], [0, 2], [0, 3], [1, 4]] so the graph formed will look like this:-

Here this graph is connected and it has no cycle so it is a tree.
Problem approach

So, I solved it using BFS

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date14 Jul 2022
Coding problem1

1. System Design

Add a reviews section on the home page of the indeed website.

Low-level as well high-level design

Scaling issues

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
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8518 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS
907 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2581 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29570 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
9584 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6677 views
1 comments
0 upvotes