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

SDE - 1

HashedIn
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: Data Structures, Algorithms, Trees, Graphs, DP, Core Java, React.js
Tip
Tip

Tip 1 : Be consistent, keep the goal to achieve, never give up.
Tip 2 : Refer to all interview experiences, give more interviews and have a good resume

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

Tip 1 : Keep it simple, don't overfill
Tip 2 : Be thorough with what you know
Tip 3 : mention your recent projects and achievements

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 Minutes
Interview date13 May 2021
Coding problem3

There were 3 coding questions, 1 easy, 1 medium and 1 hard, criteria was to clear atleast 2

1. Pattern Printing

Easy
10m average time
95% success
0/40
Asked in companies
HashedInCapegemini Consulting India Private LimitedCatchpoint

Ninja has been given two integers 'M' and ‘N’.

Now Ninja has to draw a rectangle of height ‘M’ and breadth ‘N’ using the character * such that the * only occurs at the boundaries of the rectangle, and inside of this boundary, there is space only.

Now, Ninja doesn’t know how to perform this operation.

You being Ninja's best friend, your task is to help Ninja to solve this problem.

EXAMPLE:
Input: 'M' = 2, ‘N’ = 2  

Output: 
**
**
Problem approach

just followed the pattern and tried to code

Try solving now

2. Minimum Number of Platform Needed

Easy
23m average time
85% success
0/40
Asked in companies
Lenskart.comQualcommGartner

You are given the arrival and departure times of N trains at a railway station in a day. You need to find the minimum of platforms required for the railway station such that no train waits i.e No train should wait for the platform to be clear or free.

Problem approach

Followed the merge proccess of merge sort

Try solving now

3. Median of two sorted arrays

Hard
25m average time
65% success
0/120
Asked in companies
GrabMicrosoftWells Fargo

Given two sorted arrays 'a' and 'b' of size 'n' and 'm' respectively.


Find the median of the two sorted arrays.


Median is defined as the middle value of a sorted list of numbers. In case the length of list is even, median is the average of the two middle elements.


The expected time complexity is O(min(logn, logm)), where 'n' and 'm' are the sizes of arrays 'a' and 'b', respectively, and the expected space complexity is O(1).


Example:
Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]

Output: 3.5

Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
Problem approach

By using partition method

Try solving now
02
Round
Medium
Video Call
Duration40 Minutes
Interview date19 May 2022
Coding problem2

This round was majorly based on dsa skills

1. Find Duplicate

Easy
0/40
Asked in companies
Morgan StanleyHewlett Packard EnterpriseSprinklr

You have been given an integer array/list(ARR) of size N which contains numbers from 0 to (N - 2). Each number is present at least once. That is, if N = 5, the array/list constitutes values ranging from 0 to 3 and among these, there is a single integer value that is present twice. You need to find and return that duplicate number present in the array.

Note :
Duplicate number is always present in the given array/list.
Problem approach

first gave a brute force approach then reduced time complexity by using floyd's algorithm, using slow and fast pointer

Try solving now

2. Balanced Binary Tree

Moderate
30m average time
50% success
0/80
Asked in companies
DunzoJosh Technology GroupHashedIn

You are given an integer 'H'. Your task is to count and print the maximum number of balanced binary trees possible with height 'H'.

The balanced binary tree is one in which, for every node, the difference between the left and right subtree heights is less than or equal to 1.

You have to print the answer with modulo 1e9+7.

For Example:
Input:
H = 2

Output: 
3

There will be a total 3 different balanced binary trees with height 2. 
One node as a root and other nodes on one of the two sides.
One with root and left subtree with one more node than right.
One with root and right subtree with one more node than left. 
Problem approach

Used recursive approach to solve this problem

Try solving now
03
Round
Easy
Video Call
Duration45 Minutes
Interview date23 May 2022
Coding problem2

Asked simple questions on project, java and basd on resume
the asked me one LLD question and 1 leetcode hard problem

1. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
HCL TechnologiesCiti BankAtlassian

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Problem approach

First solved it using dp, later reduced space using 2 pointer method

Try solving now

2. System Design Question

Design a chess board using java using oops and classes, write all necessary functions with king and knight move

Problem approach

Tip 1 : be good with basics of oops, classes and methods
Tip 2 : try to come up with innovative ideas of how to tackle a problem
Tip 3 : executable code is not needed just the idea and approach is important

04
Round
Easy
HR Round
Duration20 Minutes
Interview date28 May 2022
Coding problem1

Easy HR questions about myself

1. Basic HR questions

Asked about college, projects, why am I choosing hashedin, what am I expecting, where do i see myself in 5 years

Problem approach

Tip 1 : Have a good communication skills
Tip 2 : Be good and friendly

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 - 1
4 rounds | 8 problems
Interviewed by HashedIn
1267 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by HashedIn
1026 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by HashedIn
924 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by HashedIn
718 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6365 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2197 views
0 comments
0 upvotes