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

SDE - 2

HashedIn
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 Months
Topics: Java, Data Structures and Algorithms, System and Database Design, OOPS and Big Data
Tip
Tip

Tip 1 : If you are a newbie to programming, I will strongly recommend to practice LC/CodingNinjas Easy questions for clearing the basics. Once you gain confidence, you can move on to tackle medium and hard questions.
Tip 2 : Most companies require individuals to know System Design well. For somebody with 1-3 years of experience, database designing (identifying entities, their relationships and constraints), OOP concepts and API designing for Low Level Design is a must. I would recommend the "System Design Interview by Alex Xu" book for HLD preparation.

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

Tip 1 : Have an updated and properly formatted resume
Tip 2 : The resume tells your story so you ought to know and be able to explain whatever you've written. 
Tip 3 : Do not include technologies/skills that you've not worked on at all. It can blow the interview if the interviewer questions you about it.

Interview rounds

01
Round
Easy
Telephonic
Duration45 minutes
Interview date19 Jun 2021
Coding problem2

This was a technical round in the evening with a Software Engineer II which included a coding question along with a few questions on Core Java fundamentals. 
I was given the option to either go for the coding round first or java theory. I realised that I might need more time for coding so I decided to opt for the coding round first, followed by the java related questions later. 
The interviewer was extremely pleasant to speak with. He initially asked me to introduce myself and we spoke in-depth about a project I worked on in my last organisation. The coding question was given on a google sheet but I was asked to code it on an online IDE without any special syntax correction features.

1. Minimum count of balls in a bag

Moderate
15m average time
85% success
0/80
Asked in companies
Wells FargoNatwest GroupFlipkart limited

You are given an integer array ‘ARR’ of size ‘N’, where ‘ARR[i]’ denotes the number of balls in the ‘i-th’ bag. You are also given an integer ‘M’, denoting the maximum number of operations you can perform on ‘ARR’ (the given collection of bags).

In each operation, you can do the following:

  • Choose a bag from the collection and divide it into two new bags such that each bag contains a positive (non-zero) number of balls. Remove the chosen bag from the collection and add the new bags into the collection.

After performing the operations, let ‘X’ be the maximum number of balls in a bag. The task is to find the minimum possible value of ‘X’ and return it.

Example:
ARR = [5, 7], N = 2, M = 2

Perform the following two operations on ‘ARR’: 
1. Divide the bag with 7 balls into 3 and 4. New ARR = [3, 4, 5].
2. Divide the bag with 5 balls into 1 and 4. New ARR = [1, 3, 4, 4].

The bag with the maximum number of balls has 4 balls. Hence, the minimum possible value of ‘X’ is 4. Return 4 as the answer.
Note:
1. You can perform any number of operations between [0, M], both included.
2. Avoid using the 'Modulo' operator as it can cause Time Limit Exceeded.
Problem approach

In my case I used the greedy approach but it can be solved using Dynamic Programing

Try solving now

2. Puzzle

Alok has three daughters. His friend Shyam wants to know the ages of his daughters. Alok gives him first hint. 

1) The product of their ages is 72. 

Shyam says this is not enough information Alok gives him a second hint. 

2) The sum of their ages is equal to my house number. 

Shyam goes out and looks at the house number and tells “I still do not have enough information to determine the ages”. 

Alok admits that Shyam can not guess and gives him the third hint 

3) The oldest girl likes strawberry ice cream. 

Shyam is able to guess after the third hint. Can you guess what are the ages of the three daughters?

Problem approach

Product of ages is 72 

Below are all possibilities to get 72 from product of three different ages: 

1 * 1 * 72 = 72 

1 * 2 * 36 = 72 

1 * 3 * 24 = 72 

1 * 4 * 18 = 72 

1 * 6 * 12 = 72 

1 * 8 * 9 = 72 

2 * 2 * 18 = 72 

2 * 3 * 12 = 72 

2 * 4 * 9 = 72 

2 * 6 * 6 = 72 

3 * 3 * 8 = 72 

3 * 4 * 6 = 72 

2) Sum of the ages is given 

1 + 1 + 72 = 74 

1 + 2 + 36 = 39 

1 + 3 + 24 = 28 

1 + 4 + 18 = 23 

1 + 6 + 12 = 19 

1 + 8 + 9 = 18 

2 + 2 + 18 = 22 

2 + 3 + 12 = 17 

2 + 4 + 9 = 15 

2 + 6 + 6 = 14 

3 + 3 + 8 = 14 

3 + 4 + 6 = 13 

All sums are unique except 14. So the age sum must have been 14, otherwise, Shyam would have guessed the ages from hint 2 only. 

So we have two possible combinations to get a sum of 14 

2 + 6 + 6 = 14 

3 + 3 + 8 = 14 

3) Alok has the oldest girl (not two!!). So the ages must be 3, 3 and 8.

02
Round
Hard
Telephonic
Duration45 minutes
Interview date24 Jun 2021
Coding problem1

This round was in the evening with a Senior Software Engineer. He introduced himself and immediately presented the question on Google Doc.

1. System Design Question

I was asked to design a Food Delivery App (Swiggy). This round revolved around designing database schemas. I was given around 20 minutes to identify the various entities involved in the system, establish the relationships between these entities and also identify the primary key - foreign key constraints. After 20 minutes, we had a good discussion on my findings and corrections with respect to certain attributes I may have missed out in my design. 
A few complex SQL queries were also asked related to the above schemas

03
Round
Easy
HR Round
Duration30 minutes
Interview date29 Jun 2021
Coding problem1

This was a half an hour round with a Senior Manager.

1. Basic HR questions

What has been your greatest failure? 

What do you always regret?

 How do you respond to change?

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
1937 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 3 problems
Interviewed by HashedIn
1438 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
2183 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 5 problems
Interviewed by HashedIn
6392 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Arcesium
1827 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Ernst & Young (EY)
2595 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 8 problems
Interviewed by Newgen Software
0 views
0 comments
0 upvotes