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

SDE - 2

Upstox
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
In the beginning, I started learning about basics DSA concepts. These included topics like array, string, stack, queue and solving questions on hacker rank. After practicing enough on Hacker Rank, I moved to advanced DSA topics including LinkedList, Tree, Graph, DP, etc. I practiced these topics on leetcode, codeforces. Then I gave some mock interviews as well that helped me prepare for interviews.
Application story
This was an off-campus opportunity. We directly applied through their portal. Shortlisting was done on the basis of resumes and then further interview rounds were carried out.
Why selected/rejected for the role?
My basic concepts of all the topics were clear and I also prepared HR questions through mock interviews. I practised all the basic to medium coding question before interview.
Preparation
Duration: 4 months
Topics: Data Structures, Algorithms, System design, DBMS, Operating system
Tip
Tip

Tip 1 : Practice a maximum question
Tip 2 : dry run all code

Application process
Where: Campus
Eligibility: 7
Resume Tip
Resume tip

Tip 1 : Do not put false things on resume
Tip 2 : make short resume

Interview rounds

01
Round
Easy
Telephonic
Duration20 mins
Interview date10 Jun 2021
Coding problem1

It was technical round

1. Technical Questions

Technical Question 1
The conversion method in which users, being used to an old system, continue to use the old system, along with the new system, is

Technical Question 2
The records in a file on magnetic tape

Technical Question 3
If a process fails, most operating system write the error information to a ______

Technical Question 4
The height of a BST is given as h. Consider the height of the tree as the no. of edges in the longest path from root to the leaf. The maximum no. of nodes possible in the tree is?

Problem approach

Be confident while answering and clear your basics first

02
Round
Medium
Online Coding Test
Duration90 mins
Interview date11 Jun 2021
Coding problem3

Three coding problems were asked by the interviewer

1. Jump Game

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

There is an array 'JUMP' of size 'N' which is 1-indexed and you are currently at index 1. Your goal is to reach index 'N' (end).


When you are at index 'i', you can jump a maximum length of 'JUMP[i]' which means you can make a jump of size 1 to JUMP[i]. Return true if you can reach the end otherwise false.


Example:-
N = 5
JUMP = [1,2,3,4,5]

ANSWER:- The answer should be YES as you can jump from 1st index to 2nd index, from 2nd index to 4th index, and from 4th index to 5th index.
Problem approach

I applied greedy algorithm

Try solving now

2. Convert A Given Binary Tree To Doubly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayGoldman SachsWells Fargo

Given a Binary Tree, convert this binary tree to a Doubly Linked List.

A Binary Tree (BT) is a data structure in which each node has at most two children.

A Doubly Linked List contains a previous pointer, along with the next pointer and data.

The order of nodes in Doubly Linked List must be the same as Inorder of the given Binary Tree.

The doubly linked list should be returned by taking the next pointer as right and the previous pointer as left.

You need to return the head of the Doubly Linked List.

For the given binary tree :

alt txt

You need to return the head to the doubly linked list.
The doubly linked list would be: 1 2 3 4 5 and can be represented as:

alt txt

Problem approach

first read complete statement of problem, First i did in-order traversal, doing in-order traversal, while doing previously visited node in a variable, For every visited node, make it next to the previous and set previous of this node as previous.

Try solving now

3. Maximum Sum Of Nodes

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

You have been given a binary tree with an integer value associated to each node. You are supposed to choose a subset of these nodes such that the sum of these chosen nodes is maximum. Keep in mind that no two of the chosen nodes must be adjacent to each other.

Note :
Two nodes are said to be adjacent to each other if they are directly connected to each other. This means that if a node is taken as part of the sum, then none of its children can be considered for the same and vice versa.
For example :
For the given binary tree

Example

Nodes used in consideration for maximum sum such that no two of them are adjacent are highlighted. Maximum sum of nodes = 1 + 1 + 1 + 4 + 5 = 12.
Problem approach

Apply graph algorithm

Try solving now
03
Round
Medium
Video Call
Duration60 mins
Interview date11 Jun 2021
Coding problem1

1. Design Question

Design Flipkart using LLD

Problem approach

Tip 1: Scope the problem
Tip 2: Make reasonable assumptions
Tip 3: Draw the major components
Tip 4: Identify the key issues
Tip 5:Redesign for the key 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 | 5 problems
Interviewed by Amazon
6678 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5176 views
0 comments
0 upvotes