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

SDE - 1

HashedIn
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 Months
Topics: Data Structures, OOPS, Algorithms, Software Design, Operating System
Tip
Tip

Tip 1 : Prepare Data structures regularly
Tip 2 : Have whole knowledge of your project(not only your role)
Tip 3 : Prepare a strategy

Application process
Where: Referral
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Mention good projects
Tip 2 : Mention your achievements.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date15 Jan 2021
Coding problem2

3 coding questions were there

1. Longest Increasing Subsequence

Moderate
30m average time
65% success
0/80
Asked in companies
IBMVisaOYO

For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increasing order.

Strictly Increasing Sequence is when each term in the sequence is larger than the preceding term.

For example:
[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Try solving now

2. Sort 0 1 2

Easy
22m average time
0/40
Asked in companies
Expedia GroupWalmartHCL Technologies

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date16 Mar 2021
Coding problem1

2 coding were asked

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

S-1:I sort the arrival and departure times of trains.
S-2: I created two pointers i=0, and j=0, and a variable to store ans and current count plat
S-3: I run a loop while iS-4: If the arrival time is less than or equal to departure then one more platform is needed so increase the count, i.e., plat++ and increment i else decrease the count, i.e., plat– and increment j
S-5: Update the ans, i.e. ans = max(ans, plat).

Try solving now
03
Round
Medium
Video Call
Duration60 Minutes
Interview date19 Mar 2021
Coding problem1

2 coding questions

1. LCA - Lowest Common Ancestor

Hard
40m average time
70% success
0/120
Asked in companies
AmazonDell TechnologiesDeutsche Bank

The lowest common ancestor (LCA) is a concept in graph theory and computer science.

Let ‘T’ be a rooted tree with ‘N’ nodes. The lowest common ancestor is defined between two nodes, ‘u’ and ‘v’, as the lowest node in ‘T’ that has both ‘u’ and ‘v’ as descendants (where we allow a node to be a descendant of itself). - Wikipedia

For the given tree, The LCA of nodes 5 and 8 will be node 2, as node 2 is the first node that lies in the path from node 5 to root node 1 and from node 8 to root node 1.

Path from node 5 to root node looks like 5 → 2 → 1.

Path from node 8 to root node looks like 8 → 6 → 2 → 1.

Since 2 is the first node that lies in both paths. Hence LCA will be 2.

Given any two nodes ‘u’ and ‘v’, find the LCA for the two nodes in the given Tree ‘T’.

Note: For each test case, the tree is rooted at node 1.

Problem approach

S-1:Find a path from the root to n1 and store it in a vector.
S-2: Find a path from the root to n2 and store it in another vector .
S-3: Traverse both paths till the values in arrays are the same. Return the common element just before the mismatch.

Try solving now
04
Round
Easy
HR Round
Duration15 Minutes
Interview date21 Mar 2021
Coding problem1

Basic questions like "tell me about family members and their occupation", "why hashedin" are asked.

1. Basic HR Questions

1. Tell me about your family members and their occupation.

2. Why hashedIn?

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
1266 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
923 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by HashedIn
717 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