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

SDE - Intern

HashedIn
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, OOPs, Operating Systems, DBMS
Tip
Tip

Tip 1 : You should have strong command on DSA basics and theoretical topics.
Tip 2 : You should be well aware of the projects and their tech stack that you are putting on your resume along with the challenges you faced while developing them.
Tip 3 : For DSA, you should practice mostly easy-medium and medium level problems for online assessment and for second interview.

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

Tip 1 : Put at least 2 projects
Tip 2 : Put some info about your coding profiles and some info about your extra curricular activities.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date31 Aug 2021
Coding problem2

Timing: Test was conducted at 10 AM in the morning.
Test was online on Codility platform.
User activity was monitored, camera was on.

1. Count Inversions

Moderate
40m average time
55% success
0/80
Asked in companies
GrabCoinbaseOracle

For a given integer array/list 'ARR' of size 'N' containing all distinct values, find the total number of 'Inversions' that may exist.

An inversion is defined for a pair of integers in the array/list when the following two conditions are met.

A pair ('ARR[i]', 'ARR[j]') is said to be an inversion when:

1. 'ARR[i] > 'ARR[j]' 
2. 'i' < 'j'

Where 'i' and 'j' denote the indices ranging from [0, 'N').
Problem approach

1. The idea is similar to merge sort, divide the array into two equal or almost equal halves in each step until the base case is reached.

2. Create a function merge that counts the number of inversions when two halves of the array are merged, create two indices i and j, i is the index for the first half, and j is an index of the second half. if a[i] is greater than a[j], then there are (mid – i) inversions. because left and right subarrays are sorted, so all the remaining elements in left-subarray (a[i+1], a[i+2] … a[mid]) will be greater than a[j].

3. Create a recursive function to divide the array into halves and find the answer by summing the number of inversions is the first half, the number of inversion in the second half and the number of inversions by merging the two.

4. The base case of recursion is when there is only one element in the given half.

Try solving now

2. Group Anagrams Together

Moderate
0/80
Asked in companies
AmazonGoldman SachsSalesforce

You have been given an array/list of strings 'STR_LIST'. You are supposed to return the strings as groups of anagrams such that strings belonging to a particular group are anagrams of one another.

Note :
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase. We can generalize this in string processing by saying that an anagram of a string is another string with the same quantity of each character in it, in any order.
Example:
{ “abc”, “ged”, “dge”, “bac” } 
In the above example the array should be divided into 2 groups. The first group consists of { “abc”, “bac” } and the second group consists of { “ged”, “dge” }.
Problem approach

This problem was new for me but I solved it in my first attempt.
1. Created a map of string and vector of string.
2. Traversing through the array of strings and setting the sorted string as key of the map and adding the original string into the corresponding vector.
3. While traversing the map extracted the vector of strings into a vector of vector of string and returned it as the answer.

Try solving now
02
Round
Medium
Video Call
Duration40 minutes
Interview date6 Sep 2021
Coding problem2

Interview was held online on zoom around 1PM
Interviewer was very nice and he introduced himself first and then asked me to give a brief intro about myself.
He started with some theory questions based on OS and networking and in the end gave me 1 DS question to solve.

1. Technical Questions

OS: What is deadlock, semaphores?
Networking: What is network topology and what are its different types ?

Problem approach

Tip 1 : Revise your theory notes that you made during your college.
Tip 2 : Check out some online materials related to interview questions, this will help in last minute revision.
Tip 3 : Make sure basic concepts of OS, DBMS, Networking are clear to you and you have one subject very well prepared for the interview.
Interviewer will ask your favorite subject.

2. Stack using queue

Moderate
25m average time
65% success
0/80
Asked in companies
AmazonQualcommPhilips

Implement a Stack Data Structure specifically to store integer data using two Queues.


There should be two data members, both being Queues to store the data internally. You may use the inbuilt Queue.


Implement the following public functions :

1. Constructor:
It initializes the data members(queues) as required.

2. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.

3. pop() :
It pops the element from the top of the stack and, in turn, returns the element being popped or deleted. In case the stack is empty, it returns -1.

4. top :
It returns the element being kept at the top of the stack. In case the stack is empty, it returns -1.

5. size() :
It returns the size of the stack at any given instance of time.

6. isEmpty() :
It returns a boolean value indicating whether the stack is empty or not.
Operations Performed on the Stack:
Query-1(Denoted by an integer 1): Pushes an integer data to the stack. (push function)

Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack and returns it to the caller. (pop function)

Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack but doesn't remove it, unlike the pop function. (top function)

Query-4(Denoted by an integer 4): Returns the current size of the stack. (size function)

Query-5(Denoted by an integer 5): Returns a boolean value denoting whether the stack is empty or not. (isEmpty function)
Example
Operations: 
1 5
1 10
2
3
4

Enqueue operation 1 5: We insert 5 at the back of the queue.
  Queue: [5]

Enqueue operation 1 10: We insert 10 at the back of the queue.
  Queue: [5, 10]

Dequeue operation 2: We remove the element from the front of the queue, which is 5, and print it.
  Output: 5
  Queue: [10]

Peek operation 3: We return the element present at the front of the queue, which is 10, without removing it.
  Output: 10
  Queue: [10]

IsEmpty operation 4: We check if the queue is empty.
  Output: False
  Queue: [10]
Problem approach

This is very standard problem based on stack and queue.
Implemented 2 methods pop() and push() by creating 2 queues q1 and q2.
Push()
Enqueue x to q2
One by one dequeue everything from q1 and enqueue to q2.
Swap the names of q1 and q2
Pop()
Dequeue an item from q1 and return it.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date10 Sep 2021
Coding problem1

Interview was held online on zoom around 10AM
Interviewer was very nice and he introduced himself first and then asked me to give a brief intro about myself.
He started with LLD question asked me to design tic tac toe game and in the end asked some follow up questions on OOP and on my project.

1. System Design Question

Design the Tic Tac Toe game using best coding practices.

Problem approach

Tip 1 : The level of problem was easy-medium, so you need to prepare these level of problems in any OOP language of your choice.
Tip 2 : Make sure you are well aware of OOPs concepts.
Tip 3 : Also go through your projects and their tech stack thoroughly.

04
Round
Easy
HR Round
Duration25 minutes
Interview date13 Sep 2021
Coding problem1

Interview was in the morning at 10 AM
Interviewer was very nice.

1. Basic HR Questions

Where do you see yourself in 5 years?
How was your college journey and how you have managed your academics in Covid lockdown?
Experience in extra curricular activities, any plans of higher education.

Problem approach

Tip 1 : This interview was easy, just be confident about your answers.
Tip 2 : Questions were very basic, giving good answers will be enough to clear this round.

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 the result of len([1, 2, 3, 4])?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
4 rounds | 5 problems
Interviewed by HashedIn
1203 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by HashedIn
1005 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 8 problems
Interviewed by HashedIn
934 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by HashedIn
1383 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3716 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2670 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2341 views
0 comments
0 upvotes