Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
HashedIn interview experience Real time questions & tips from candidates to crack your interview

SDE - 2

HashedIn
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
The interview experience was truly enriching, with the technical rounds proving to be quite engaging. I gleaned valuable insights throughout the process.
Application story
Following a referral on LinkedIn, the recruiter reached out to discuss my background and expectations and inquired about my availability for the initial round. Impressively, she promptly provided feedback for each interview the very next day, ensuring a seamless process without any suspense regarding the outcome.
Why selected/rejected for the role?
In most instances, I successfully addressed all questions posed in each round. However, there were occasions when I encountered unfamiliar queries. Instead of outright declining, I opted to analyze the question aloud, engaging in a process of thoughtful consideration and narrowing down the scope, which ultimately led me to approximate around 70% of the correct solution.
Preparation
Duration: 2 Months
Topics: Core Java, Java 8, Sprint Boot, Microservices, System Design, DSA
Tip
Tip

Tip 1: Cover Core Java Basics.

Tip 2: Understand Java 8 concepts.

Tip 3: Learn System Design.

Tip 4: Learn DSA, focusing at least on Strings and Arrays.

Application process
Where: Referral
Eligibility: 3+ Years of Experience in Java, Spring Boot, Microservices
Resume Tip
Resume tip

Tip 1: Be specific and mention your tech stack for both projects and work experience.

Tip 2: Explain your project roles and responsibilities clearly.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date9 May 2024
Coding problem3

It was a Zoom call. The interviewer was nice and polite.

1. Java: Core Concepts in an Online Compiler

The process commenced with core Java inquiries utilizing an online Java compiler, primarily focusing on fundamental questions related to Java streams.

Problem approach

I responded to each question thoughtfully, aiming to guide them through the process of arriving at the solution. I highlighted how our Java fundamentals can be applied and explained the usage and reasoning behind streams. Additionally, I discussed alternative solutions as well.

2. Check two string are anagram or not

Moderate
30m average time
60% success
0/80
Asked in companies
IBMTata Consultancy Services (TCS)Optum

You are given two strings 'str1' and 'str1'.


You have to tell whether these strings form an anagram pair or not.


The strings form an anagram pair if the letters of one string can be rearranged to form another string.

Pre-requisites:

Anagrams are defined as words or names that can be formed by rearranging the letters of another word. Such as "spar" can be formed by rearranging letters of "rasp". Hence, "spar" and "rasp" are anagrams. 

Other examples include:

'triangle' and 'integral'
'listen' and 'silent'
Note:
Since it is a binary problem, there is no partial marking. Marks will only be awarded if you get all the test cases correct. 
Problem approach

Step 1: I initially provided a solution using sorting.
Step 2: He asked about the program's complexity and requested an optimization since sorting has an NLogN time complexity.
Step 3: I then proposed a solution using a HashMap.
Step 4: He inquired about the space complexity and requested a reduction in it.
Step 5: I offered a solution using frequency counting.
Step 6: Finally, he asked me to write the final logic in an online Java compiler, run it, and paste the code, output, and time complexity into a shared Word file.

Try solving now

3. Duplicate In Array

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

In an array, print the numbers that appear several times equal to their digit. For example, given the array [1, 2, 3, 3, 3, 4, 5, 5, 5, 5, 5, 6], the output would be 1, 3, and 5 because 1 appears once, 3 appears three times, and 5 appears five times.

Problem approach

I proposed an approach where we first identify the maximum digit in the array. Then, we create a temporary array with a length equal to this maximum digit. Next, we iterate through the main array, incrementing the index corresponding to each digit in the temporary array. Finally, we check if the value at any index in the temporary array matches the index itself; if it does, that index is part of the solution and should be printed.

He asked me about the time complexity of my approach. Due to time constraints during our Zoom meeting, he requested that I write the code in an online Java compiler and paste the code, output, and time complexity into a shared Word document.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date14 May 2024
Coding problem1

It was a Zoom call and the interviewer was nice and polite.

1. System Design

I was tasked with designing both a High-Level and Low-Level structure for a Food Delivery System that caters to three user categories: Customers, Riders, and Restaurants.

These functionalities will be mapped out in both High-Level and Low-Level designs for the system. Need to give the Scalability, Optimized solutions, Microservice Architecture

Problem approach

I have come up with the following scenarios.

Customer:
Log into the application.
Sets their location.
Searches for nearby restaurants.
Searches for restaurants by dish.
Adds items to the cart.
Place an order.
Payment Gateway
Waits for a rider to be assigned.
Tracks the rider's progress.
Receives notifications at each order checkpoint.

Rider:
Receives delivery requests.
Manages and fulfils requests.
Updates order status.
Restaurant:

Manages menu items.
Receives and processes order requests.
Notifies when food is prepared and ready.

I gave the solution of each mentioned point, How will be the microservice arch, and how APIs will interact with each other. How we store the data in a database or any other storage

03
Round
Easy
HR Round
Duration30 minutes
Interview date22 May 2024
Coding problem1

This was the Fitment Round.

1. Scenario based questions

The questions revolved around scenarios involving challenges I encountered, my time management strategies, interactions with clients, and my approach to handling production bugs.

04
Round
Easy
HR Round
Duration15 minutes
Interview date26 May 2024
Coding problem0

Salary Discussion Round.

Join the Discussion
1 reply
profile
3 months ago

It's amazing! Your article is very good and very useful to us! Thank you so much for taking the time to share with us! Have a good time with uno online free.

0 upvotes
0 replies
Reply
Similar interview experiences
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
1123 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 3 problems
Interviewed by HashedIn
784 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
992 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
478 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Arcesium
1257 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
1353 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
926 views
1 comments
0 upvotes