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

SDE - 1

Gainsight
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I was very new to coding when I joined college, but the seniors at my college helped me a lot to learn it. I was fortunate to receive some good offers, but I also faced my fair share of rejections. My parents supported me a lot during that time.
Application story
I applied through a referral from a senior at Gainsight. After that, I received a test link, and the interviews were conducted by the recruitment team.
Why selected/rejected for the role?
Rejected — I wasn’t able to optimize one DSA problem, otherwise the interviews went well, and the interviewers were very helpful too.
Preparation
Duration: 5 Months
Topics: OOPS, System Design, Algorithms, Data Structures, DBMS
Tip
Tip

Tip 1: Prepare for System Design.
Tip 2: Practice DSA questions thoroughly.
Tip 3: Revise OOP and DBMS concepts.

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

Tip 1: Include at least 4 projects on your resume.
Tip 2: Do not write anything false on your resume. You will almost always get caught. Be honest and genuine.

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date8 Feb 2022
Coding problem3

The recruiter primarily wanted to assess my coding skills in this round. He asked three well-structured DSA questions.

1. 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

2. Search In A 2D Matrix

Easy
10m average time
90% success
0/40
Asked in companies
HSBCAdobeCIS - Cyber Infrastructure

You have been given a 2-D array 'mat' of size 'M x N' where 'M' and 'N' denote the number of rows and columns, respectively. The elements of each row are sorted in non-decreasing order.


Moreover, the first element of a row is greater than the last element of the previous row (if it exists).


You are given an integer ‘target’, and your task is to find if it exists in the given 'mat' or not.


Example:
Input: ‘M’ = 3, 'N' = 4, ‘mat’ = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]], ‘target’ = 8

Output: true

Explanation: The output should be true as '8' exists in the matrix.
Try solving now

3. Smallest Window

Moderate
10m average time
90% success
0/80
Asked in companies
ArcesiumReliance Jio Infocomm LtdGoldman Sachs

You are given two strings S and X containing random characters. Your task is to find the smallest substring in S which contains all the characters present in X.

Example:

Let S = “abdd” and X = “bd”.

The windows in S which contain all the characters in X are: 'abdd', 'abd', 'bdd', 'bd'. 
Out of these, the smallest substring in S which contains all the characters present in X is 'bd'. 
All the other substring have a length larger than 'bd'.
Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date18 Feb 2022
Coding problem2

This round primarily focused on testing knowledge of computer science subjects, past experience, and included one DSA problem and one puzzle.

1. Check If Binary Tree Is Sum Tree Or Not

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

You are given an arbitrary binary tree consisting of N nodes where each node is associated with a certain value. You need to check whether the given tree is a sum tree or not.

A binary tree is a sum tree if the value of each node is equal to the sum of nodes present in the left and the right subtree. An empty tree is a sum tree with 0 sums. A leaf node is also considered a sum tree with a sum equal to the value of the leaf node.

Try solving now

2. SQL Question

I need to write a query that returns the employee with the third highest salary in the company.

Problem approach

Tip 1: Practice as many SQL questions as possible from common coding practice platforms.
Tip 2: Always share your thought process clearly with the interviewer.

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
Associate Software Engineer
6 rounds | 4 problems
Interviewed by Gainsight
2564 views
0 comments
0 upvotes
Software Engineer
2 rounds | 5 problems
Interviewed by Gainsight
1047 views
0 comments
0 upvotes
SDE - 1
3 rounds | 8 problems
Interviewed by Gainsight
836 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 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