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

SDE - 1

Rootstock Software
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I learned about this job from their official site. I applied for the position and was selected for the exam. After taking the exam, I was also selected for the interview.
Application story
I applied for this profile on the company website, where I got the test link after applying for the jobs.
Why selected/rejected for the role?
I was not able to answer the optimal approach for a problem, that's why I think I was rejected in the interview.
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Graphs should be at your fingertips. 

Tip 2: When explaining the solution to the interviewer, don't just jump to the most optimal solution. Please start with the brute force approach, discuss its drawbacks, and then proceed step by step to the optimal solution. 

Tip 3: Improve your communication skills as well.

Application process
Where: Other
Eligibility: Above 6 CGPA
Resume Tip
Resume tip

Tip 1: Mention only what is required for your profile. For example, do not stress too much about your co-curricular activities. Instead, focus on explaining the technical skills and experiences relevant to the job. 

Tip 2: Keep it limited to one page. Make sure it's a PDF and not an image.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date22 Jun 2023
Coding problem2

1. Find power of a number

Easy
15m average time
80% success
0/40
Asked in companies
SAP LabsWalmartQuikr

Ninja is sitting in an examination hall. He is encountered with a problem statement, "Find ‘X’ to the power ‘N’ (i.e. ‘X’ ^ ‘N’). Where ‘X’ and ‘N’ are two integers."

Ninja was not prepared for this question at all, as this question was unexpected in the exam.

He is asking for your help to solve this problem. Help Ninja to find the answer to the problem.

Note :

For this question, you can assume that 0 raised to the power of 0 is 1.
Try solving now

2. Flipping Coins

Moderate
32m average time
68% success
0/80
Asked in companies
WalmartAmerican ExpressAthenahealth

Gary has N coins placed in a straight line. Some coins have head side up, and others have the tail side up.

Convention:
1 denotes the HEAD side is up. 
0 denotes the TAIL side is up. 

Now, Gary wants to obtain a maximum number of head-side up coins. He can perform at most one(possibly 0) flip in which he can flip the coins of a continuous interval (continuous subarray).

For example: In the given array (0 based indexing), { 1, 0, 0, 1, 0, 0, 1 }, we can obtain maximum head side up coins by flipping the coins in range 1 to 5. The array will thus become {1, 1, 1, 0, 1, 1, 1 }.

Return the maximum number of heads side up Gary can obtain.

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date22 Jun 2023
Coding problem2

1. Kth ancestor of a node in binary tree

Hard
50m average time
35% success
0/120
Asked in companies
Goldman SachsHCL TechnologiesHCL Technologies

You are given an arbitrary binary tree consisting of N nodes numbered from 1 to N, an integer 'K', and a node 'TARGET_NODE_VAL' from the tree. You need to find the Kth ancestor of the node 'TARGET_NODE_VAL'. If there is no such ancestor, then print -1.

The Kth ancestor of a node in a binary tree is the Kth node in the path going up from the given node to the root of the tree. Refer to sample test cases for further explanation.

Note:
1. The given node 'TARGET_NODE_VAL' is always present in the tree.
2. The value of each node in the tree is unique.
3. Notice that the Kth ancestor node if present will always be unique.
Try solving now

2. Valid Parentheses

Easy
10m average time
80% success
0/40
Asked in companies
OracleAmerican ExpressPayPal

You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .


Return true if the given string 'S' is balanced, else return false.


For example:
'S' = "{}()".

There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Try solving now
03
Round
Easy
Video Call
Duration60 Minutes
Interview date22 Jun 2023
Coding problem2

In addition to DSA questions, we faced inquiries related to computer networking. These questions examined our understanding of protocols, network layers, IP addressing, and routing algorithms. We were expected to explain concepts like TCP/IP, DNS, subnetting, and the OSI model.

1. Merge Sort

Easy
15m average time
85% success
0/40
Asked in companies
Media.netHewlett Packard EnterpriseIBM

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Try solving now

2. Decode String

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

You have been given an encoded string. Your task is to decode it back to the original string.

- An encoded string will be of the form <count>[encoded_string], where the 'encoded_string' inside the square brackets is being repeated exactly 'count' times. Note that 'count' is guaranteed to be a positive integer and can be greater than 9.
- There are no extra white spaces and square brackets are well-formed.
For example -
Input: 2[a]
“a” is encoded 2 times, hence the decoded string will be "aa".

Input: 3[a2[b]]
“b” is encoded 2 times, which decodes as 3[abb]. Now, "abb" is encoded 3 times, hence decoded string will be "abbabbabb". 
Try solving now

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
3 rounds | 6 problems
Interviewed by Rootstock Software
753 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Rootstock Software
1066 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Rootstock Software
685 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 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