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

SDE - 1

HashedIn
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 Months
Topics: Data Structures, OOPS, DBMS, Algorithms, Java
Tip
Tip

Tip 1 : Do a very good amount of DSA questions & make sure to revise them after a period of time which you were unable to solve
Tip 2 : Topics like dbms, oops are asked in many interviews of companies, so make sure you don't ignore them
Tip 3 : Projects play an important role in your selection, so make sure you know about the technology and have decent knowledge about the project

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

Tip 1 : Resume must be of 1 page only
Tip 2 : All your projects & achievements must be short & brief

Interview rounds

01
Round
Easy
Online Coding Test
Duration90 Minutes
Interview date5 Oct 2021
Coding problem2

This round started near 1pm and was like any other normal test.

1. Sort An Array of 0s, 1s and 2s

Easy
10m average time
90% success
0/40
Asked in companies
IBMSamsungDirecti

You have been given an array/list 'arr' consisting of 'n' elements.


Each element in the array is either 0, 1 or 2.


Sort this array/list in increasing order.


Do not make a new array/list. Make changes in the given array/list.


Example :
Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]

Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]

Explanation: The array is sorted in increasing order.
Problem approach

Step 1: I knew this question is to be solved using dutch national flag algorithm.
Step 2: Declared 3 variables, low = 1, mid = 1, high = N
Step 3: I traversed the array from start to end till mid is less than high
Step 4: If current number at index i is 0, swap this number with element at low and increase both(low++, mid++)
Step 5: If current number at index i 1, simply do mid++
Step 6: If current number at index i is 2, swap this number with element at high and decrease both(high--, i--)
Step 7: Return the updated array

Try solving now

2. Maximum of All Subarrays of Size K

Easy
15m average time
85% success
0/40
Asked in companies
SprinklrMicrosoftAmazon

You are given an array “A” of N integers. Your task is to find the maximum element in all K sized contiguous subarrays from left to right.

For Example:
If A = [3, 2, 3], and K = 2.
Then max of [3, 2] = 3 and max of [2, 3] = 3
So, the answer will be [3, 3]

If A = [3, 2, 3, 5, 1, 7] and K = 3.
Then max of [3, 2, 3] = 3 
Then max of [2, 3, 5] = 5 
Then max of [3, 5, 1] = 5 
Then max of [5, 1, 7] = 7 
So  the answer will be [3, 5, 5, 7]
Follow Up :
Can you solve the problem in O(N) time complexity and O(K) space complexity?
Problem approach

Step 1: Created deque and added first k element in it. But while adding we check if last element in deque is less than current element to be added, we remove that last element. We do this for all the elements left in deque and add current element only if elements at last of deque are greater
Step 2: Now run loop for remaining elements, firstly we print the first element of deque as it is our required answer for first window. Step 3 & Step 4 comes under for loop
Step 3: Then we remove the element from front of queue if they are out of the current window.
Step 4: Ans now before adding the current element we check same condition as done in step 1 before adding
Step 5: At last we print the first element of deque as it is answer for the last window.

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date21 Oct 2021
Coding problem1

The time for this round was around 12noon.

1. DBMS Question

What is 3-Layered Architecture of DBMS

Problem approach

Tip 1: I referred gfg and tutorials points for my preparation
Tip 2: I tried to cover all interview questions for these topics and it helped me a lot
 

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
1027 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
6366 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
2198 views
0 comments
0 upvotes