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

SDE - 1

Rupeek
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: Basic Data Structures, OOPS, Algorithms, Few Design Patterns, Core subjects
Tip
Tip

Tip 1 : Focus on trees/graph problems mainly
Tip 2 : Have thorough understanding of any one project on your resume

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Clearly mention the tech stack and the projects done. They will pick one of them and ask about it
Tip 2 : Don't mention anything which you're unsure about in any respect

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 Minutes
Interview date21 Oct 2020
Coding problem3

1. Two Sum

Easy
10m average time
90% success
0/40
Asked in companies
Chegg Inc.FacebookAmazon

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Problem approach

1. Create a hashmap which accepts integer datatype as key and value.

2. Iterate through each element in the given array starting from the first element.

3. In each iteration check if required number (required number = target sum - current number) is present in the hashmap.

4. If present, return {required number index, current number index} as result.

5. Otherwise add the current iteration number as key and its index as value to the hashmap. Repeat this until you find the result

Try solving now

2. Course Schedule

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

You are a student of Netaji Subhas Institute of Technology. You have to take ‘N’ number of courses labelled from 1 to N to complete your B.Tech Degree.

Some courses may have prerequisites, for example, to take course 1 you have to first take course 2, which is expressed as a pair: [1, 2]. Now, your task is to find is it possible for you to finish all courses.

Note: There are no duplicate pairs in the prerequisites array.

For example-
If N = 2 and prerequisite = [[1, 2]]. Then, there are a total of 2 courses you need to take. To take course 1 you need to finish course 2. So, it is possible to complete all courses. 
Try solving now

3. Bursting Balloons

Moderate
40m average time
60% success
0/80
Asked in companies
QuikrSamsungOracle

You are given an array 'ARR' of N integers. Each integer represents the height of a balloon. So, there are N balloons lined up.

Your aim is to destroy all these balloons. Now, a balloon can only be destroyed if the player shoots its head. So, to do the needful, he/ she shoots an arrow from the left to the right side of the platform, from an arbitrary height he/she chooses. The arrow moves from left to right, at a chosen height ARR[i] until it finds a balloon. The moment when an arrow touches a balloon, the balloon gets destroyed and disappears and the arrow continues its way from left to right at a height decreased by 1. Therefore, if the arrow was moving at height ARR[i], after destroying the balloon it travels at height ARR[i]-1. The player wins this game if he destroys all the balloons in minimum arrows.

You have to return the minimum arrows required to complete the task.

Try solving now
02
Round
Easy
Online Coding Interview
Duration50 Minutes
Interview date22 Oct 2020
Coding problem2

1. Reverse Linked List

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

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Try solving now

2. Subtree of Another Tree

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

Given two binary trees T and S, check whether tree S has exactly the same structure and node values with a subtree of T, i.e., check if tree S is a subtree of the tree T.

A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T. The subtree corresponding to the root node is the entire tree; the subtree corresponding to any other node is called a proper subtree.

Problem approach

1. Do traversal of both the trees(any traversal) and build a string out of it. Add 'null' string on encountering NULL.
2. Check if string of first tree is present in other. Use any inbuilt function like contains. If curious, read about KMP

Try solving now
03
Round
Medium
Online Coding Interview
Duration30 Minutes
Interview date27 May 2022
Coding problem1

1. Rotting Oranges

Moderate
20m average time
78% success
0/80
Asked in companies
IBMSliceSamsung R&D Institute

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • Value 2 - representing a rotten orange.
  • Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.

    Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Note:
    1. The grid has 0-based indexing.
    2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
    
    Try solving now
    04
    Round
    Easy
    Online Coding Interview
    Duration30 Minutes
    Interview date27 May 2022
    Coding problem1

    1. Basic HR Questions

    They asked questions about two of my projects. For one, they went in depth while for other they just skimmed it,
    In the end, they asked what are you most excited about for joining Rupeek? What you'll bring to table?

    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
    2 rounds | 5 problems
    Interviewed by Rupeek
    2243 views
    0 comments
    0 upvotes
    SDE - 1
    4 rounds | 4 problems
    Interviewed by Rupeek
    982 views
    0 comments
    0 upvotes
    SDE - 1
    4 rounds | 4 problems
    Interviewed by Rupeek
    956 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