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

SDE - 1

HashedIn
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Java, C, C++, HTML, CSS, Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Must do previously Asked Interview Questions.
Tip 2 : Prepare OS, DBMS, OOPs, and Computer Networks well.
Tip 3 : Prepare well for one project mentioned in the resume, the interviewer may ask any question related to the project, especially about the networking part of the project.

Application process
Where: Linkedin
Eligibility:
Resume Tip
Resume tip

Tip 1 : Have at least one project on the resume.
Tip 2 : Must mention every skill and certificate in the resume.
Tip 3 : Must have known every strong and intermediate skill mentioned in the resume.
Tip 4 : Do not include technologies/skills that you've not worked on at all. It can blow the interview if the interviewer questions you about it.

Interview rounds

01
Round
Easy
Online Coding Test
Duration60 minutes
Interview date7 Jul 2022
Coding problem2

This was the first technical round completely based on the data structures and algorithms and computer fundamentals.

1. Longest Sub-string with at most K Distinct Characters

Moderate
35m average time
65% success
0/80
Asked in companies
GoogleAmazonSAP Labs

You are given string S of length N, and an integer K. Your task is to find the length of the longest substring that contains at most K distinct characters.

Problem approach

Use Map data structure with string keys (single characters of the input string).

Inside the for loop check whether the current character has already appeared. If not, just increase the currMaxLen counter by one. Otherwise, if it has appeared earlier and the difference between their 1-based index values loc - prev_loc is less or equal than the current max substring length, the counter must be updated to only contain the length of the new active substring.

For example, for a string "abcb"

after char "c", currMaxLen equals 3 and the map has content "a":1, "b":2, "c":3
for next and last char "b", the if condition results true (2 && 4 - 2 <= 3) and currMaxLen is set to 2 as the active longest substring is now "cb".
iteration ends after that and the answer is three
function lengthOfLongestSubstring(s: string): number {
const map = new Map();

let maxLen = 0;
let currMaxLen = 0;

for (let i=0; i const loc = i + 1;
const prev_loc = map.get(s[i]);

if (prev_loc && loc - prev_loc <= currMaxLen) {
currMaxLen = loc - prev_loc;
} else {
currMaxLen += 1;
}

map.set(s[i], loc);

maxLen = Math.max(maxLen, currMaxLen);
}

return maxLen;
};

Try solving now

2. Spiral Matrix

Easy
0/40
Asked in companies
Tata Consultancy Services (TCS)CultfitGoldman Sachs

You are given a N x M matrix of integers, print the spiral path of the matrix.

For example:

Spiral Path

Problem approach

class Solution {
public:
vector spiralOrder(vector>& matrix) {
int m = size(matrix), n = size(matrix[0]), sz = m*n;
vector ans(sz);
int r0 = 0, r1 = m-1, c0 = 0, c1 = n-1, r = 0, c = 0;
for (int i = 0, flag = 0; i < sz; flag = (flag+1) % 4) {
if (flag == 0) {
for (c = c0; c <= c1; c++)
ans[i++] = matrix[r][c];
r0++, c--;
} else if (flag == 1) {
for (r = r0; r <= r1; r++)
ans[i++] = matrix[r][c];
c1--, r--;
} else if (flag == 2) {
for (c = c1; c >= c0; c--)
ans[i++] = matrix[r][c];
r1--, c++;
} else if (flag == 3) {
for (r = r1; r >= r0; r--)
ans[i++] = matrix[r][c];
c0++, r++;
}
}
return ans;
}
};

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date8 Jul 2022
Coding problem1

This was 2nd technical round taken by the senior software engineer at HashedIn. This round was based on the system design of Facebook.

1. System Design

Design a clone system for facebook

Problem approach

Practice system Designing

03
Round
Easy
HR Round
Duration30 minutes
Interview date20 Jul 2022
Coding problem1

This was the HR round taken by the hiring manager of the company.

1. Basic HR Questions

Tell me about yourself
Tell me about the most challenging project
Tell me about the basic pillars of OOPs
What has been your greatest failure? 
What do you always regret?
How do you respond to change?
Greatest challenging project
How do you handle stress
How will you resolve conflict with the Manager

Problem approach

Tip 1 : Make sure your resume is up-to-date
Tip 2 : Be confident and focus on your communication
Tip 3 : Prepare for the behavioral questions

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by HashedIn
776 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by HashedIn
628 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by HashedIn
590 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by HashedIn
231 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
1 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
5947 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
5199 views
3 comments
0 upvotes