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

SDE - 1

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

Interview preparation journey

expand-icon
Journey
I completed my BTech from a tier-3 college. During my second year, I started working on coding questions and participating in mock interviews. By the time the placement drive occurred, I had solved numerous questions on various practice websites.
Application story
This was an on-campus opportunity for me. The company visited my campus for placement. They set a CGPA cutoff, and thankfully, I qualified for the drive.
Why selected/rejected for the role?
I was rejected because I was not able to provide an accurate solution to the question given to me.
Preparation
Duration: 6 months
Topics: Data Structures and Algorithms, Object-Oriented Programming System, Operating system, Database Management System
Tip
Tip

Tip 1: Solve a variety of coding problems that involve data structures.

Tip 2: Participate in online coding platforms or solve practice problems from textbooks and websites.

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

Tip 1: Tailor your resume to the specific industry or field you are applying to. Research the skills and qualifications valued in that industry and highlight them in your resume to demonstrate your suitability and alignment with industry standards.

Tip 2: Begin each bullet point with a strong action verb that captures the essence of your achievements. This not only grabs the reader's attention but also showcases your proactive approach and impact in previous roles.

 

 

Interview rounds

01
Round
Medium
Video Call
Duration45 minutes
Interview date26 May 2023
Coding problem2

During the interview, we were presented with challenging DSA questions that tested our proficiency in various data structures such as hash tables, graphs, and trees. We were required to analyze problems, devise efficient algorithms, and discuss the time and space complexity of our solutions.

1. Left Rotations of An Array

Moderate
10m average time
90% success
0/80
Asked in companies
IBMIBMThought Works

You are given an array consisting of 'N' elements and you need to perform 'Q' queries on the given array. Each query consists of an integer which tells the number of elements by which you need to left rotate the given array. For each query return the final array obtained after performing the left rotations.

Note:

Perform each query on the original array only i.e. every output should be according to the original order of elements.

Example:

Let the array be [1, 2, 3, 4, 5, 6] and the queries be {2, 4, 1}. For every query, we’ll perform the required number of left rotations on the array.

For the first query, rotate the given array to the left by 2 elements, so the resultant array is: [3, 4, 5, 6, 1, 2].

For the second query, rotate the given array to the left by 4 elements, so the resultant array is: [5, 6, 1, 2, 3, 4].

For the third query, rotate the given array to the left by 1 element, so the resultant array is: [2, 3, 4, 5, 6, 1].
Problem approach

I first separated the string into words and stored them in an array. Then, I passed each element of the array to a function that returns the rotated word. In the function, I used a reverse technique to rotate the array, which was enough to pass all test cases. I had done a similar problem in my course (Data Structures and Algorithms in Python) at Coding Ninjas, which helped me during my coding test.

Try solving now

2. Height of the Binary Tree

Moderate
10m average time
90% success
0/80
Asked in companies
AmazonMorgan StanleyNagarro Software

You have been given the Inorder Traversal and Level Order Traversal of a Binary Tree of integers. Your task is to calculate the height of the Binary tree without constructing it.

The height of the binary tree is the number of edges in the longest path from the root node to any leaf node in the tree. In case the tree has only one node, the height is taken to be 0.

Try solving now
02
Round
Easy
Video Call
Duration45 minutes
Interview date26 May 2023
Coding problem2

1. Common Elements

Moderate
35m average time
70% success
0/80
Asked in companies
SAP LabsWalmartFlipkart limited

Given two 1-dimensional arrays containing strings of lowercase alphabets, print the elements that are common in both the arrays i.e. the strings that are present in both the arrays.

Note:
An element of one array can be mapped only to one element of the array. For example :

Array 1 = {“ab”, “dc”, “ab”, “ab”}
Array 2 = {“dc”, “ab”, “ab”} 

The common elements for the above example will be “dc”, “ab”, and “ab”. 
Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
HCL TechnologiesInformaticaSamsung

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Problem approach

I first explained to him the brute force algorithm, which involved generating all subarrays of the array and then finding the sum of each, picking the maximum sum from all of them. The interviewer was not satisfied and asked for an optimized approach. I then explained Kadane's algorithm with an example, and he was satisfied with both the approach and the example I provided.

Try solving now
03
Round
Easy
Online Coding Interview
Duration20 minutes
Interview date29 May 2023
Coding problem1

1. Basic HR Questions

  • Can you describe a challenging technical problem you've faced in your previous roles and how you approached solving it? 
  • Walk me through your experience with a specific programming language or technology that is relevant to the position. 
  • How do you stay updated with the latest developments in the software engineering field, and can you provide an example of how you've applied new knowledge to improve your work? 
  • Tell me about a time when you had to work collaboratively with a team to deliver a project. What was your role, and how did you ensure the success of the project? 
  • In what ways do you prioritize and manage your workload to meet project deadlines, and how do you handle competing priorities?

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 | 6 problems
Interviewed by Rootstock Software
678 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