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

SDE - 1

ThoughtSpot
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I completed my BTech, and during my studies, I started solving coding questions and participating in mock interviews. Since then, I have solved numerous questions on various coding practice websites.
Application story
This is an on-campus opportunity for me. The company visited my campus for placements and provided a CGPA-based cutoff.
Why selected/rejected for the role?
I was rejected because I was not able to provide an accurate solution for the question given to me.
Preparation
Duration: 3 months
Topics: Data Structures and Algorithms, Object-Oriented Programming System, Operating System, Database Management System
Tip
Tip

Try to solve Data Structures and Algorithms-based questions on your own before looking at the solution, and aim to do them as quickly as possible. Also, prepare for theoretical subjects like Operating Systems and Database Management Systems. I used Coding Ninjas' subjective notes for these topics, and they are very accurate and up to the mark.

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

Tip 1: Include some projects on your resume.
Tip 2: Do not include any false information on your resume.

Interview rounds

01
Round
Medium
Video Call
Duration50 mins
Interview date16 Dec 2022
Coding problem2

1. Rotate matrix by 90 degrees

Easy
15m average time
85% success
0/40
Asked in companies
AdobeMicrosoftMcKinsey & Company

You are given a square matrix of non-negative integers 'MATRIX'. Your task is to rotate that array by 90 degrees in an anti-clockwise direction using constant extra space.

For example:

For given 2D array :

    [    [ 1,  2,  3 ],
         [ 4,  5,  6 ],
         [ 7,  8,  9 ]  ]

After 90 degree rotation in anti clockwise direction, it will become:

    [   [ 3,  6,  9 ],
        [ 2,  5,  8 ],
        [ 1,  4,  7 ]   ]
Problem approach

You are given a matrix ‘MAT’ of size 'N' × 'M' (where 'N' and 'M' denote the number of rows and columns, respectively) and a positive integer ‘K’. Your task is to rotate the matrix to the right 'K' times.

Try solving now

2. Palindrome Partitioning

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

You are given a string 'S'. Your task is to partition 'S' such that every substring of the partition is a palindrome. You need to return all possible palindrome partitioning of 'S'.

Note: A substring is a contiguous segment of a string.

For Example:
For a given string “BaaB”
3 possible palindrome partitioning of the given string are:
{“B”, “a”, “a”, “B”}
{“B”, “aa”, “B”}
{“BaaB”}
Every substring of all the above partitions of “BaaB” is a palindrome.
Problem approach

You are given a string 'S'. Your task is to partition 'S' such that every substring in the partition is a palindrome. You need to return all possible palindrome partitions of 'S'.

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date16 Dec 2022
Coding problem2

1. Form the Biggest Number

Moderate
25m average time
70% success
0/80
Asked in companies
BarclaysArcesiumIntuit

Given an array “A” of positive integers. Your task is to make the largest number possible formed by concatenating each of the array elements exactly once.

Example:
Let's say the given array is [ 9, 98, 7].

All the possible numbers formed by concatenating each of the array elements are 7989,7998,9879,9897,9987,9798. Among the six numbers, 9987 is the greatest number. Hence the answer is 9987.
Problem approach

Given an array "A" of positive integers, your task is to form the largest possible number by concatenating each array element exactly once.

Try solving now

2. Infix To Postfix

Easy
20m average time
80% success
0/40
Asked in companies
DelhiverySamsungOracle

You are given a string 'exp' which is a valid infix expression.


Convert the given infix expression to postfix expression.


Note:
Infix notation is a method of writing mathematical expressions in which operators are placed between operands. 

For example, "3 + 4" represents the addition of 3 and 4.

Postfix notation is a method of writing mathematical expressions in which operators are placed after the operands. 

For example, "3 4 +" represents the addition of 3 and 4.

Expression contains digits, lower case English letters, ‘(’, ‘)’, ‘+’, ‘-’, ‘*’, ‘/’, ‘^’. 


Example:
Input: exp = ‘3+4*8’

Output: 348*+

Explanation:
Here multiplication is performed first and then the addition operation. Hence postfix expression is  3 4 8 * +.


Problem approach

You are given a string EXP, which is a valid infix expression. Convert the given infix expression into a postfix expression.

Try solving now
03
Round
Medium
Video Call
Duration60 mins
Interview date16 Dec 2022
Coding problem2

1. Level Order Traversal

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

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree

Example

The level order traversal will be {1,2,3,4,5,6,7}.
Problem approach

You are given a binary tree of integers, and you are supposed to return its level-order traversal.

Try solving now

2. Fenwick Tree

Moderate
15m average time
85% success
0/80
Asked in companies
Goldman SachsAmazonSamsung Electronics

You are given an array/list 'ARR' of ‘N’ integers, and ‘Q’ queries. Each query can be of two types:

Given 2 integers ‘L’,’R’ ( L>=0 and R<N ) find the sum of all the elements of the array with the index in the range 'L' and 'R' (inclusive). This is a query of type range sum.

Given an index ‘i’ update the value of ARR[i] to a given integer ‘X’. This is a query of type point update.

Your task is to perform the queries on the given array and return the desired output for each query.

Problem approach

You are given an array/list 'ARR' of ‘N’ integers and ‘Q’ queries. Each query can be of two types:

  1. Given two integers ‘L’ and ‘R’ (where L ≥ 0 and R ≤ N - 1), find the required information in the range [L, R].
  2. Given an index ‘i’, update the value of ARR[i] to a given integer ‘X’. This is a point update query.
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 | 5 problems
Interviewed by ThoughtSpot
2223 views
2 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by ThoughtSpot
1414 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by ThoughtSpot
1323 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
114578 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34960 views
7 comments
0 upvotes