i
HashedIn by Deloitte
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Clear (1)
I was interviewed in Jan 2025.
Leetcode medium level questions
I applied via Company Website and was interviewed in Jun 2024. There were 4 interview rounds.
There were 3 coding questions of moderate difficulty.
Transpose a matrix by swapping rows with columns
Iterate through each row and column and swap the elements
Create a new matrix with swapped rows and columns
Ensure the new matrix has the correct dimensions
Implement a swap method for two variables.
Create a temporary variable to store the value of one variable.
Assign the value of the second variable to the first variable.
Assign the value of the temporary variable to the second variable.
The depth of a binary tree is the number of edges on the longest path from the root node to a leaf node.
Depth of a binary tree can be calculated recursively by finding the maximum depth of the left and right subtrees and adding 1.
The depth of a binary tree with only one node (the root) is 0.
Example: For a binary tree with root node A, left child B, and right child C, the depth would be 1.
To find the middle element of a linked list, use two pointers - one moving at double the speed of the other.
Use two pointers - slow and fast, with fast moving at double the speed of slow.
When fast reaches the end of the list, slow will be at the middle element.
I want to join Hashedin because of its reputation for innovative projects and collaborative work environment.
Reputation for innovative projects
Collaborative work environment
Opportunities for growth and learning
Managing tight deadlines and learning new technologies were the main challenges faced in my previous internship.
Meeting tight project deadlines
Adapting to new technologies quickly
Working in a fast-paced environment
Collaborating with team members effectively
I applied via Campus Placement and was interviewed in May 2024. There were 3 interview rounds.
3 Questions- Easy to Medium. Questions from Greedy, Scheduling queues, and String Compression.
Coding test of medium to hard difficulty.
Multiple inheritance is a feature in object-oriented programming where a class can inherit attributes and methods from more than one parent class.
Allows a class to inherit attributes and methods from multiple parent classes
Can lead to the Diamond Problem where ambiguity arises if two parent classes have a method with the same name
Languages like C++ support multiple inheritance
Abstraction is the concept of hiding complex implementation details and showing only the necessary information. Encapsulation is bundling data and methods that operate on the data into a single unit.
Abstraction focuses on what an object does rather than how it does it
Encapsulation restricts access to some of an object's components, protecting the object's integrity
Abstraction allows for creating simple interfaces for c...
HashedIn by Deloitte interview questions for designations
I applied via Company Website and was interviewed in May 2023. There were 5 interview rounds.
Dp and strings questions along with array
Rotate an array of strings k times
Create a temporary array to store elements that will be rotated
Use modulo operator to handle cases where k is greater than array length
Update the original array with elements from the temporary array
Use a hash table to find two numbers in a linked list that add up to a target sum.
Traverse the linked list and store each node's value in a hash table along with its index.
For each node, check if the difference between the target sum and the current node's value exists in the hash table.
If it does, return the indices of the two nodes.
Example: Given linked list 2 -> 4 -> 3 -> 5 and target sum 7, return indices 1 and 2.
Get interview-ready with Top HashedIn by Deloitte Interview Questions
I was interviewed in May 2022.
Round duration - 90 minutes
Round difficulty - Medium
There was three questions in the test. I was able to solve 2.5 questions. 2 Questions was of medium difficulty and one was easy.
Given an integer number num
, your task is to convert 'num' into its corresponding word representation.
The first line of input contains an integer ‘T’ denoting the number o...
Convert a given integer number into its corresponding word representation.
Implement a function that converts the given number into words by breaking it down into its individual digits and mapping them to their word representation.
Handle special cases like numbers less than 20, multiples of 10, and numbers in the hundreds and thousands place.
Ensure that there is a space between every two consecutive words and all charac
Round duration - 60 Minutes
Round difficulty - Medium
Interviewer asked me 2 DSA question and 10 short answer type questions.
Timing around 1 hour.
Interview was on zoom and we can use our own editor, for eg I used Vs Code.
Interviewer was very helpful. He helps me finding the edge cases.
Determine if a given singly linked list of integers forms a cycle or not.
A cycle in a linked list occurs when a node's next
points back to a previous node in the ...
Detect if a singly linked list forms a cycle by checking if a node's next points back to a previous node.
Use Floyd's Tortoise and Hare algorithm to detect a cycle in the linked list.
Maintain two pointers, slow and fast, where slow moves one step at a time and fast moves two steps at a time.
If there is a cycle, the fast pointer will eventually meet the slow pointer.
If the fast pointer reaches the end of the list (null),...
Round duration - 60 Minutes
Round difficulty - Medium
Total duration of the round is 60 minutes.
Interview was on zoom. we can use any editor.
It was Design round.
Designing a social media platform with friend requests and posts.
Implement user profiles with friend request functionality.
Allow users to create and share posts on their profiles.
Include news feed to display posts from friends.
Implement notifications for friend requests and post interactions.
Include privacy settings for posts and friend requests.
Consider implementing features like comments, likes, and shares for posts.
Round duration - 20 Minutes
Round difficulty - Easy
Duration of this round is 20 minutes.
Interview was on zoom.
Interviewer was very friendly.
Tip 1 : Give mock interview as much as you can.
Tip 2 : Be confident in the interview.
Tip 3 : Try to explain your logic to yourself whenever you are preparing. It will help you in the real interview
Tip 4 : Make one or two good project (good project means using functionalities like database, authentication).
Tip 1 : Explain your project briefly in your resume.
Tip 2 : Write only those points in the resume that is linked to this profile.
I was interviewed in May 2022.
Round duration - 90 minutes
Round difficulty - Medium
My test was scheduled at 2 pm and I received the test link at exactly 2 pm in my mail. The platform was quite user-friendly. The test consists of 3 coding question and I have solved all 3 of them.
Given an array of integers, determine the maximum possible sum of any contiguous subarray within the array.
array = [34, -50, 42, 14, -5, 86]
Find the maximum sum of any contiguous subarray within an array of integers.
Iterate through the array and keep track of the maximum sum of subarrays encountered so far.
At each index, decide whether to include the current element in the subarray or start a new subarray.
Use Kadane's algorithm to efficiently find the maximum subarray sum.
Example: For array [34, -50, 42, 14, -5, 86], the maximum subarray sum is 137.
We have a set collection of N
stones, and each stone has a given positive integer weight. On each turn, select the two stones with the maximum weight and smash them toge...
Find the weight of the last stone remaining after smashing stones together.
Sort the stones in descending order.
Simulate the smashing process by repeatedly smashing the two heaviest stones until only one stone is left.
Return the weight of the last stone, or 0 if no stone is left.
Round duration - 60 minutes
Round difficulty - Medium
This round consists of questions based on DSA and CS fundamentals. The interviewer was very nice she helped me whenever I was shucked in the question. Apart from dsa questions were based on DAMS, CN, OOPS, OS, Github.
For a given singly linked list, identify if a loop exists and remove it, adjusting the linked list in place. Return the modified linked list.
A...
Detect and remove loop in a singly linked list in place with O(n) time complexity and O(1) space complexity.
Use Floyd's Tortoise and Hare algorithm to detect the loop in the linked list.
Once the loop is detected, find the start of the loop using the same algorithm.
Adjust the pointers to remove the loop and return the modified linked list.
Example: For input 5 2 and elements 1 2 3 4 5, output should be 1 2 3 4 5.
Round duration - 30 minutes
Round difficulty - Medium
It was the HR Interview and consists of basic HR interview questions.
Tip 1 : Solve dsa 450 sheet of Love Babbar.
Tip 2 : Prepare CS fundamentals well.
Tip 3 : Revise Oops concepts.
Tip 4 : Read previous interview experiences.
Tip 1 : Mention links of your coding profile.
Tip 2 : Mention your projects and they should be live.
Tip 3 : Resume should be of 1 page.
Tip 4 : Mention your Mooc Courses.
I was interviewed in Mar 2022.
Round duration - 90 minutes
Round difficulty - Medium
It consists of 3 questions:
The first question was related to DP (Hard)
Second was related to math(Easy)
Third was related to string (Medium)
Ninja has a 'GRID' of size 'R' x 'C'. Each cell of the grid contains some chocolates. Ninja has two friends, Alice and Bob, and he wants to collect as many chocolates as possible ...
Find the maximum number of chocolates that can be collected by two friends moving in a grid.
Start from the top-left and top-right corners, move diagonally down to collect chocolates
Calculate the total chocolates collected by each friend and sum them up for the final result
Consider all possible paths for both friends to maximize the total chocolates collected
Find the number of trailing zeroes in the factorial of a given number N
.
The first line contains an integer T
representing the number of test cases.
Each of the...
Count the number of trailing zeros in the factorial of a given number.
Trailing zeros are created by pairs of 2 and 5 in the factorial.
Count the number of 5s in the prime factorization of N to find the trailing zeros.
For example, for N=10, there are 2 trailing zeros as there are two 5s in the prime factorization of 10.
You are given an encrypted string where repeated substrings are represented by the substring followed by its count. Your task is to find the K'th character of the d...
Given an encrypted string with repeated substrings represented by counts, find the K'th character of the decrypted string.
Parse the encrypted string to extract substrings and their counts
Iterate through the substrings and counts to build the decrypted string
Track the position in the decrypted string to find the K'th character
Round duration - 45 minutes
Round difficulty - Medium
Standard DS/Algo round. It was at around 12 PM
Given a sequence of numbers, the task is to identify all the leaders within this sequence. An element is considered a leader if it is strictly greater than all the el...
Identify all the leaders in a sequence of numbers, where a leader is greater than all elements to its right.
Iterate through the sequence from right to left, keeping track of the maximum element encountered so far.
If an element is greater than the maximum element encountered so far, it is a leader.
Add the leaders to a result sequence while maintaining the original order.
The rightmost element is always a leader.
Given an array of unique integers where each element is in the range [1, N], and the size of the array is (N - 2), there are two numbers missing from this array....
Given an array of unique integers with two missing numbers, find and return the missing numbers.
Iterate through the array and mark the presence of each number in a separate boolean array.
Iterate through the boolean array to find the missing numbers.
Return the missing numbers in increasing order.
Given a singly linked list of integers, your task is to return the head of the reversed linked list.
The first line of input contains an integer 'T' representing the numbe...
Reverse a singly linked list of integers in O(N) time and O(1) space complexity.
Iterate through the linked list, reversing the pointers to point to the previous node instead of the next node.
Use three pointers to keep track of the current, previous, and next nodes while reversing the list.
Update the head of the reversed linked list as the last node encountered during the reversal process.
Example: Given 1 -> 2 -> ...
Round duration - 35 minutes
Round difficulty - Easy
First, he asked me to introduce myself.
Then, he told me that as you know this is a design round so design a music player like Spotify.
First, I have designed the database using tables and Primary and Foreign Keys.
Then, he told me to write the code for it and told me that before I write the code tell me that which data structure will you use and why?
Then, he discussed with me for around 10 to 15 min that why am I using particular DS and why not someone else and what will be the problem in a particular data structure, and how will certain DS perform in case of various operations like searching, adding, deleting the songs in the music player.
Then, he told me to write the code for a playlist of this music player with all possible operations.
Design a music player similar to Spotify.
Implement user authentication for personalized playlists and recommendations
Create a user-friendly interface with features like search, shuffle, repeat, and create playlists
Integrate a recommendation system based on user listening history and preferences
Round duration - 30 minutes
Round difficulty - Easy
Interviewer was very friendly
And, timing was around 12.30 PM
Tip 1 : Practice Atleast 100+ questions
Tip 2 : Clear with your approach and time-space complexity of your approach
Tip 3 : Also focus on low-level design
Tip 1 : Mention your coding handles
Tip 2 : Also, mention about your project tech stacks
I was interviewed before Apr 2023.
Database design for Instagram platform
Create tables for users, posts, comments, likes, followers, and hashtags
Use primary and foreign keys to establish relationships between tables
Include fields such as user_id, post_id, comment_id, like_id, follower_id, and hashtag_id
Implement indexes for faster data retrieval
Consider scalability and performance optimization techniques
I was interviewed in Nov 2021.
Round duration - 90 minutes
Round difficulty - Medium
There were 3 coding questions. questions were implemented based on arrays and trees
Question 1 was Easy
Question 2 was Medium
Question 3 was Medium
all 3 questions were necessary to be selected for the next round.
Given a binary tree, convert this binary tree into its mirror tree. A binary tree is a tree in which each parent node has at most two children. The mir...
Convert a binary tree into its mirror tree by interchanging left and right children of non-leaf nodes.
Traverse the binary tree in a recursive manner.
Swap the left and right children of each non-leaf node.
Continue this process until all nodes are visited.
Example: Input binary tree: 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1, Output mirror tree: 1 3 2 6 5 4 -1 -1 -1 -1 -1 7 -1 -1 -1
In Ninja town, represented as an N * M
grid, people travel by jumping over buildings in the grid's cells. Santa is starting at cell (0, 0) and must deliver gifts to cell (N-1, ...
Santa needs to find the quickest path to deliver gifts in Ninja town by jumping over buildings with least travel time.
Santa starts at (0, 0) and needs to deliver gifts to (N-1, M-1) on Christmas Eve.
Santa can jump to (x+1, y+1), (x+1, y), or (x, y+1) from any cell (x, y) within grid boundaries.
Travel time between two buildings equals the absolute difference in their heights.
Find the quickest path with least travel time...
Round duration - 60 minutes
Round difficulty - Medium
It was DSA based round where there was some discussion on the project followed by 2 coding questions, I had to explain my approach and write the code on Google Docs.
Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...
Check if two strings are anagrams of each other by comparing their sorted characters.
Sort the characters of both strings and compare them.
Use a dictionary to count the frequency of characters in each string and compare the dictionaries.
Ensure both strings have the same length before proceeding with the comparison.
Example: For input 'str1 = "spar", str2 = "rasp"', the output should be True.
Given an array of integers denoting the heights of the mountains, find the length of the longest subarray that forms a mountain shape.
A mountain subarray is d...
Find the length of the longest mountain subarray in an array of integers.
Identify peaks in the array where the elements transition from ascending to descending order.
Calculate the length of the mountain subarray starting from each peak.
Track the length of the longest mountain subarray found so far.
Consider edge cases like when there are no mountains in the array.
Round duration - 75 minutes
Round difficulty - Easy
This round mainly revolved around a system design for an e-commerce website, then some DBMS queries followed by interview questions on OS, DBMS, and Computer Networks. Also there was some discussion of project, how it works, why I made the project, etc.
Round duration - 30 Minutes
Round difficulty - Easy
Some HR questions were asked like other offers, Why do you wanna join Hashedin, and strengths and weaknesses.
After that a puzzle was asked which I correctly answered
Tip 1 : DSA is a must (Around 300+ questions)
Tip 2 : Good knowledge of core subjects like DBMS, OS, CN
Tip 3 : 2 Good projects + SQL and queries
Tip 1 : Good formatting of resume, have the knowledge of what you put into your resume
Tip 2 : should be a 1-page resume with at least 2 projects
Top trending discussions
based on 8 interviews
4 Interview rounds
based on 20 reviews
Rating in categories
Software Engineer
412
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer2
376
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
206
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer II
173
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Product Specialist
165
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech