HashedIn by Deloitte interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

HashedIn by Deloitte
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
Great learning experience. It was a day-long process with an OA followed by three rounds of interviews, but unfortunately, I couldn’t make it to the HR round. In the interview, DSA and system design were the two most critical areas for selection. In this interview specifically, database design was also very important.
Application story
Many HashDin employees posted on LinkedIn about job openings, and I asked a few of them for referrals. The process took a bit longer after the application — after nearly 4 months, they asked me to select a slot for the physical interview.
Why selected/rejected for the role?
I was rejected in the 2nd round of the interview. After this experience, I feel like practicing more DSA problems along with system design concepts.
Preparation
Duration: 3 months
Topics: DSA, DBMS, Operating Systems, Computer Networking, System Design
Tip
Tip

Tip 1: Prepare medium-level DSA questions.

Tip 2: Prepare the system design well for the interview.

Application process
Where: Referral
Eligibility: 7 CGPA, (Salary Package - 8 LPA)
Resume Tip
Resume tip

Tip 1: Have good projects.
Tip 2: Do good internships.

Interview rounds

01
Round
Hard
Online Coding Test
Duration90 minutes
Interview date7 May 2025
Coding problem3

The test was scheduled in the morning at 9 AM, and the overall environment was smooth and comfortable.

1. Mike's Beautiful Sequence

Easy
0/40
Asked in company
HashedIn by Deloitte

You are a data analyst working with a numerical sequence A of length n. A sequence is considered "beautiful" if the greatest common divisor (GCD) of all its elements is greater than 1.


To transform a sequence, you can perform a special operation:


- Choose an index i (where 1 <= i < n).
- Replace the two adjacent elements A[i] and A[i+1] with A[i] - A[i+1] and A[i] + A[i+1], respectively.


Your task is to find the minimum number of operations required to make the sequence A beautiful. If the sequence is already beautiful, no operations are needed.


Problem approach

Tip 1: Read the question carefully.

Tip 2: Solve more DSA problems.

Try solving now

2. M-Coloring Problem

Moderate
15m average time
85% success
0/80
Asked in companies
Bank Of AmericaSamsungEditorialist YX

You are given an undirected graph as an adjacency matrix consisting of 'v' vertices and an integer 'm'.


You need to return 'YES' if you can color the graph using at most 'm' colors so that no two adjacent vertices are the same. Else, return 'NO'.


For example:
Input:
If the given adjacency matrix is:
[0 1 0]
[1 0 1]
[0 1 0] and 'm' = 3.

alt.txt

Output: YES

Explanation:
The given adjacency matrix tells us that 1 is connected to 2 and 2 is connected to 3. We can use three different colors and color all three nodes.
Hence we return true.


Problem approach

Tip 1: Solve graph-pattern problems.
Tip 2: Practice DSA regularly.

Try solving now

3. The N - Queens Puzzle

Moderate
0/80
Asked in companies
DunzoFlipkart limitedHashedIn by Deloitte

The N Queens puzzle is the problem of placing N chess queens on an N * N chessboard such that no two queens attack each other.

Given an integer ‘N’, print all distinct solutions to the ‘N’ queen puzzle.

Two queens on the same chessboard can attack each other if any of the below condition satisfies:  
1. They share a row. 
2. They share a column. 
3. They share a diagonal. 
Problem approach

Tip 1: Solve DP and recursion questions regularly.
Tip 2: Practice more DSA.

Try solving now
02
Round
Medium
Face to Face
Duration40 minutes
Interview date7 May 2025
Coding problem2

1. Expression Add Operators

Hard
0/120
Asked in company
HashedIn by Deloitte

You are given a string digits containing only the digits '0' through '9', and an integer target. Your task is to find all possible ways to insert the binary operators +, -, or * between the digits to form expressions that evaluate to the target value.


Rules for forming expressions:

1) Operators are placed between digits.
2) Operands (the numbers in the expression) can be formed by concatenating multiple digits. For example, in "123", you can form the operand 12.
3) Operands cannot have leading zeros, unless the number is 0 itself. For example, "105" can form 10, but "05" is invalid.


You need to return a list of all unique strings that represent these valid expressions.


Problem approach

Tip : Solve recursion problems.

Try solving now

2. Closest Leaf To Given Node In Binary Tree

Moderate
15m average time
85% success
0/80
Asked in companies
Cerner CorporationJosh Technology GroupGoDigitley

Ninja is stuck in a maze which is in a form of a binary tree. He needs your help in order to get out.

Ninja is presently at the node ‘X’. The only exit points of the maze are the leaf nodes of the tree. You need to tell him the distance to the nearest exit point from his current location. This will help him decide which path he should take in order to escape from the maze.

Example:

sample tree 1

Suppose, Ninja is stuck at node 62. The possible exit points in the maze are: 40, 10, and 20. From all the possible exit points the closest ones are 10 and 20 which are at a distance of 1 unit.
Try solving now
03
Round
Hard
Face to Face
Duration50 minutes
Interview date7 May 2025
Coding problem2
Hard
0/120
Asked in company
HashedIn by Deloitte

You are given two strings ‘s1’ and ‘s2’.


Return the longest common subsequence of these strings.


If there’s no such string, return an empty string. If there are multiple possible answers, return any such string.


Note:
Longest common subsequence of string ‘s1’ and ‘s2’ is the longest subsequence of ‘s1’ that is also a subsequence of ‘s2’. A ‘subsequence’ of ‘s1’ is a string that can be formed by deleting one or more (possibly zero) characters from ‘s1’.


Example:
Input: ‘s1’  = “abcab”, ‘s2’ = “cbab”

Output: “bab”

Explanation:
“bab” is one valid longest subsequence present in both strings ‘s1’ , ‘s2’.


Try solving now

2. URL Shortener

Easy
10m average time
90% success
0/40
Asked in companies
AdobeMakeMyTripShareChat

You have given a URL id – 'N' consisting of only digits. Your task is to generate a short URL for the given URL id.

To generate a short URL, you need to convert the given URL id to 62 base number where digits of the number are:[“0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”] i.e “0” corresponds to 0, “a” corresponds to 10, “Z” corresponds to 61, and “10” corresponds to 62, “11” corresponds to 63, and so on….

Follow Up:
Can you solve this in logarithmic time and space complexity?
Problem approach

Tip 1: Practice more DSA questions.
Tip 2: Practice HLD questions.

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
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 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
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes