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

SDE - 1

Rupeek
upvote
share-icon
4 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 9 months
Topics: Data structures, Pointers, Dynamic Programming, Graphs(BFS, DFS), Algorithms, OOPS
Tip
Tip

Tip 1 : Practice DSA strongly (At least 300+ questions, mostly medium & some hard as well).
Tip 2 : Always try to land upon the most optimal solution from time & space complexity.
Tip 3 : In between practice also participates in Codeforces contests.
Tip 4 : Add 2-3 technical projects to your resume to enhance it.

Application process
Where: Campus
Eligibility: 6 CGPA, Good CV (Projects & skills required)
Resume Tip
Resume tip

Tip 1: Have at least 2 projects on your resume
Tip 2: Only mention the skills on which you are confident else add as elementary proficiency.

Interview rounds

01
Round
Medium
Coding Test - Pen and paper
Duration45 mins
Interview date2 Dec 2020
Coding problem1

Walk-in round

1. Knight Tour

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

You are given a chessboard consisting of ‘N’ rows and ’M’ columns. Rows are numbered from 0 to ‘N-1’ and columns are numbered from 0 to ‘M-1’. Cell(i, j) is the cell at the intersection of the ith row and the jth column.

A knight is a chess piece that can move from cell (x1, y1) to the cell (x2, y2) if one of the following conditions is met:

|x1−x2| = 2 and |y1−y2| = 1, or

|x1−x2| = 1 and |y1−y2| = 2.

A knight cannot move outside the chessboard.

Initially a knight is placed at the cell(0, 0) of this chessboard, Moving according to the rules of chess, the knight must visit each cell exactly once. Find out the order of each cell in which they are visited.

Note :

1. There are multiple possible orders in which a knight can visit each cell of the chessboard exactly once. You can find any valid order.
2. It may be possible that there is no possible order to visit each cell exactly once. In that case, return a matrix having all the values equal to -1. 

Example :

Consider an 8*8 chessboard, one possible order for visiting each cell exactly once is shown in the image below. Numbers in cells indicate the move number of the Knight. 

alt text

Problem approach

It is a simple DFS traversal problem.

Try solving now
02
Round
Medium
Face to Face
Duration30 mins
Interview date2 Dec 2020
Coding problem1

1. BFS in Graph

Easy
10m average time
90% success
0/40
Asked in companies
Morgan StanleySamsung R&D InstituteRubrik, Inc.

Given an adjacency list representation of a directed graph with ‘n’ vertices and ‘m’ edges. Your task is to return a list consisting of Breadth-First Traversal (BFS) starting from vertex 0.


In this traversal, one can move from vertex 'u' to vertex 'v' only if there is an edge from 'u' to 'v'. The BFS traversal should include all nodes directly or indirectly connected to vertex 0.


Note:
The traversal should proceed from left to right according to the input adjacency list.


Example:
Adjacency list: { {1,2,3},{4}, {5}, {},{},{}}

The interpretation of this adjacency list is as follows:
Vertex 0 has directed edges towards vertices 1, 2, and 3.
Vertex 1 has a directed edge towards vertex 4.
Vertex 2 has a directed edge towards vertex 5.
Vertices 3, 4, and 5 have no outgoing edges.

We can also see this in the diagram below.

BFS traversal: 0 1 2 3 4 5

example

Problem approach

The interview was checking how the candidate is approaching the problem.
Asked to write the code on paper.
Solution - Just apply BFS approach

Try solving now
03
Round
Hard
Face to Face
Duration45 mins
Interview date2 Dec 2020
Coding problem1

1. Design question

Write an optimal algorithm for Facebook friend suggestions.Choose write data structure to store the friends information of all users.

Problem approach

I choose graph as a data structure to store all the users & made an edge if the 2 users are friends.
Logically friend suggestions will be list of friends of friends.
First return the level 2 friends & so on

04
Round
Easy
HR Round
Duration20 mins
Interview date2 Dec 2020
Coding problem1

HR round (Behavioural)

1. Basic HR Questions

Why do you want to choose a startup?

You are from non cs background, Why do you want to be a developer?

Why Rupeek?

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 - 1
4 rounds | 5 problems
Interviewed by Rupeek
2838 views
0 comments
0 upvotes
SDE - 1
4 rounds | 7 problems
Interviewed by Rupeek
1757 views
0 comments
0 upvotes
SDE - 1
2 rounds | 5 problems
Interviewed by Rupeek
2243 views
0 comments
0 upvotes
SDE - 1
4 rounds | 4 problems
Interviewed by Rupeek
955 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes