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

Software Engineer

HashedIn
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Computer Networking, Object Oriented Programming, ML
Tip
Tip

Tip 1 : Never leave any topic from any chapter / Subject
Tip 2 : Learn to explain your thoughts well
Tip 3 : Learn from previous experiences / interviews / problems asked.
Tip 4 : Atleast 4 projects in Resume

Application process
Where: Referral
Eligibility: Above 6.5 criteria
Resume Tip
Resume tip

Tip 1 : Atleast 4 projects on Resume
Tip 2 : Do not write false things. You always get caught. Be genuine.

Interview rounds

01
Round
Easy
Video Call
Duration55 minutes
Interview date5 Apr 2022
Coding problem2

The interview was held in the morning. He started by asking about me and then. talked about projects and resume.
Then he asked some basic oops questions and coding questions.

1. Pair Sum

Easy
15m average time
90% success
0/40
Asked in companies
Media.netExpedia GroupQuikr

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to return the list of all pairs of elements such that each sum of elements of each pair equals 'S'.

Note:

Each pair should be sorted i.e the first value should be less than or equals to the second value. 

Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
Problem approach

We store all first array elements in hash table.
For elements of second array, we subtract every element from x and check the result in hash table.
If result is present, we print the element and key in hash (which is an element of first array).

Try solving now

2. Flood Fill

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

An 'IMAGE' is represented by the 2-D array of positive integers, where each element of 2-D represents the pixel value of the image.


The given 'IMAGE' has 'N' rows and 'M' columns. You are given the location of the pixel in the image as ('X', 'Y')(0-based indexing) and a pixel value as 'P'.


Your task is to perform a “flood fill” operation on the given coordinate (X, Y) with pixel value 'P'.


Let the current pixel value of ('X', 'Y') be equal to C. To perform the flood fill operation on the coordinate (X, Y) with pixel value 'P' you need to do the following operations in order:

1. Replace the pixel value of ('X', 'Y') with 'P'.

2. Visit all non-diagonal neighbours of ('X', 'Y') having pixel values equal to C and replace their pixel value with 'P'.

3. Non – diagonal neighbours are Up('X' - 1, 'Y'), Down('X' + 1, 'Y'), Left('X', 'Y' - 1), right('X', 'Y' + 1). Also, you cannot go out of bounds.

4. Visit all non-diagonals neighbours of coordinates visited in step 2 having pixel value equal to C and replace their pixel value with 'P'. 

5. Repeat step 2, until you have visited all your neighbours
For Example:
For  'N' = 5 , 'M' = 4 , 'X' = 2 , 'Y' = 2 and 'P' = 5
Given 'IMAGE' is shown below:

[7, 1, 1, 1]
[1, 7, 7, 7]
[7, 7, 7, 0]
[7, 7, 7, 4]
[4, 4, 4, 4]

After the flood fill operation, we will replace all neighbour's 7s with 5.

So our 'IMAGE' will become:

[7, 1, 1, 1]
[1, 5, 5, 5]
[5, 5, 5, 0]
[5, 5, 5, 4]
[4, 4, 4, 4]
Problem approach

Apply DFS/BFS
every node is to check tell all the nodes that are adjucent to me to check their if they are the same color as I am and if yes change their color

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date5 Apr 2022
Coding problem2

This round was held on the same day after 4 hours. He came and started with DSA questions so this was a round to purely test coding ability.

1. Convert Number To Words

Hard
40m average time
75% success
0/120
Asked in companies
FacebookExpedia GroupMorgan Stanley

You are given an Integer ‘N’ you have to convert the integer to words.

For example you are given integer N = 2234 then you have to return the string “two thousand two hundred and thirty four”.

Problem approach

The code supports numbers up to 4 digits, i.e., numbers from 0 to 9999. Idea is to create arrays that store individual parts of output strings. One array is used for single digits, one for numbers from 10 to 19, one for 20, 30, 40, 50, .. etc, and one for powers of 10. 
The given number is divided into two parts: the first two digits and the last two digits, and the two parts are printed separately.

Try solving now

2. XOR Query

Moderate
10m average time
90% success
0/80
Asked in companies
Rubrik, Inc.Urban Company (UrbanClap)Uber

Assume you initially have an empty array say ‘ARR’.

You need to return the updated array provided that some ‘Q’ number of queries were performed on this array.

The queries are of two types:

1. 1 ‘VAL’, for this type of query, you need to insert the integer 'VAL' to the end of the array.
2. 2 ‘VAL’, for this type of query, you need to take the bitwise XOR of all the elements of the array with 'VAL' i.e each element of the array ‘ARR’ will be updated as ‘ARR[i]’ = ‘ARR[i]’ ^ ‘VAL’ ( ^ denotes the bitwise XOR operation).

Note:

1) Bitwise XOR operation takes two numbers and performs XOR operation on every bit of those two numbers. For example, consider two numbers 2 and 3 their bitwise XOR will be 1. Because the binary representation of 2 is '10' and the binary representation of 3 is '11'. And XOR of '10' and '11' will be '01'(because XOR evaluates to 0 if the corresponding bits are the same in both the operands, otherwise it evaluates to 1), which is equal to 1.

2) The first query will always be a type 1 query.

3) Note that the ith query should be performed on the array obtained after performing (i-1)th query on the array and so on i.e the changes of each query are updated on the original array itself.
Problem approach

If X[i] is 1, then both a[i] and b[i] should be different, we have two cases.
If X[i] is 0, then both a[i] and b[i] should be same. we have two cases.
If X[i] = 0 and A[i] = 0, then a[i] = b[i] = 0. Only one possibility for this bit.
If X[i] = 0 and A[i] = 1, then a[i] = b[i] = 1. Only one possibility for this bit.
If X[i] = 1 and A[i] = 0, then (a[i] = 1 and b[i] = 0) or (a[i] = 0 and b[i] = 1), we can pick any of the two.
If X[i] = 1 and A[i] = 1, result not possible (Note X[i] = 1 means different bits)

Try solving now
03
Round
Easy
HR Round
Duration30 minutes
Interview date7 Apr 2022
Coding problem1

This round was just consisting of standard HR questions but I heard some were rejected in this round as well so be well prepared.

1. Basic HR Questions

Tell me about yourself.
About My blockchain project in deep. (Is India ready for the idea implemented in my project?)
Why HashedIn?
Suppose: You are 3 colleagues, one is you. The other one is your best friend and the third one is your mate (say XYZ). If XYZ deleted the data and your boss asked you, “Who deleted the data?” and if your best friend deleted the data. What would be your answer to both the questions?
One time when you were in a problem, and how did you deal with it?
Any questions for me (interviewer)?
Family Background.

Problem approach

Tip 1 : Just be confident 
Tip 2 : Show your willingness to learn even if you are not able to answer any of their questions. They are ready to hire and train employees as per their requirements.
Tip 3 : Practice Previously asked Questions.

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
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2643 views
0 comments
0 upvotes
company logo
Software Engineer
4 rounds | 6 problems
Interviewed by HashedIn
950 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 5 problems
Interviewed by HashedIn
2592 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by HashedIn
2146 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
3266 views
2 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Newgen Software
1480 views
0 comments
0 upvotes