i
HashedIn by Deloitte
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I was interviewed before May 2021.
Round duration - 90 minutes
Round difficulty - Medium
3 coding questions were there
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Sort an array of 0s, 1s, and 2s in linear time complexity.
Use three pointers to keep track of 0s, 1s, and 2s while iterating through the array.
Swap elements based on the values encountered to sort the array in-place.
Time complexity should be O(N) and space complexity should be O(1).
Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This...
Find the length of the longest strictly increasing subsequence in an array of integers.
Use dynamic programming to solve this problem efficiently.
Initialize an array to store the length of the longest increasing subsequence ending at each index.
Iterate through the array and update the length of the longest increasing subsequence for each element.
Return the maximum value in the array as the result.
Round duration - 60 Minutes
Round difficulty - Medium
2 coding were asked
You are given the arrival and departure times of N trains at a railway station for a particular day. Your task is to determine the minimum number of pl...
Determine the minimum number of platforms needed at a railway station based on arrival and departure times of trains.
Sort the arrival and departure times in ascending order.
Use two pointers to keep track of overlapping schedules.
Increment the platform count when a new train arrives before the previous one departs.
Return the maximum platform count needed.
Round duration - 60 Minutes
Round difficulty - Medium
2 coding questions
Understanding the concept of Lowest Common Ancestor (LCA) in graph theory and computer science is essential.
Consider a rooted tree ‘T’ containing ‘N’ nodes...
The Lowest Common Ancestor (LCA) problem involves finding the lowest node in a tree that is an ancestor of two given nodes.
LCA is the lowest node in a tree that is an ancestor of both given nodes.
The tree is rooted at node 1 for each test case.
Paths from each node to the root are considered to find the LCA.
Constraints include the number of test cases, nodes, queries, and node values.
Time limit for the solution is 1 sec
Round duration - 15 Minutes
Round difficulty - Easy
Basic questions like "tell me about family members and their occupation", "why hashedin" are asked.
Tip 1 : Prepare Data structures regularly
Tip 2 : Have whole knowledge of your project(not only your role)
Tip 3 : Prepare a strategy
Tip 1 : Mention good projects
Tip 2 : Mention your achievements.
I was interviewed in Mar 2021.
Round duration - 40 minutes
Round difficulty - Easy
17 candidates were shortlisted for the interview.
There were 2 coding questions asked of easy level. I had to explain my approach and write the code in google doc.
Given two arbitrary binary trees, your task is to determine whether these two trees are mirrors of each other.
Two trees are considered mirror of each other if...
Check if two binary trees are mirrors of each other based on specific criteria.
Compare the roots of both trees.
Check if the left subtree of the first tree is the mirror of the right subtree of the second tree.
Verify if the right subtree of the first tree is the mirror of the left subtree of the second tree.
You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or tw...
The problem involves finding the number of distinct ways to climb N stairs by taking 1 or 2 steps at a time.
Use dynamic programming to solve the problem efficiently.
The number of ways to reach the Nth stair is the sum of the number of ways to reach the (N-1)th stair and the (N-2)th stair.
Handle base cases for N=0 and N=1 separately.
Consider using modulo operation to avoid overflow for large values of N.
Round duration - 90 Minutes
Round difficulty - Easy
The round was held in evening. There were 4 questions asked and the interviewer was more interested in the running code with several test cases rather than my explaination.
Given a column title as it appears in an Excel sheet, your task is to return its corresponding column number.
S = "AB"
28
The seq...
Convert Excel column title to corresponding column number.
Iterate through each character in the input string
Calculate the corresponding value of each character based on its position in the alphabet
Multiply the value by 26 raised to the power of its position from the right in the input string
Sum up all the values to get the final column number
Given an array of integers NUM
that consists of N
elements, where the array represents the digits of a number, your task is to add 1 to this number. The number is po...
Given an array representing digits of a number, add 1 to the number.
Iterate through the array from right to left, starting with the least significant digit.
Add 1 to the current digit and check if it becomes 10. If so, set it to 0 and carry over to the next digit.
Handle the case where the most significant digit needs to be incremented by creating a new array with an extra digit.
Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make...
The task is to determine the total number of ways to make change for a specified value using given denominations.
Create a dynamic programming table to store the number of ways to make change for each value up to the target value.
Iterate through each denomination and update the table accordingly based on the current denomination.
The final value in the table will represent the total number of ways to make change for the ...
Design a 2-player Tic-Tac-Toe game played on an N
* N
grid where Player 1 uses ‘X’ and Player 2 uses ‘O’. A move is always valid and occupies an empty spot.
If a player places ...
Design a 2-player Tic-Tac-Toe game on an N x N grid where players place their marks to win by getting N marks in a row.
Create a 2D array to represent the game board.
Implement a function to check for a win after each move.
Handle player moves and update the board accordingly.
Return the result of each move (0, 1, or 2) based on the game state.
Consider horizontal, vertical, and diagonal win conditions.
Tip 1 : Practice DSA questions, not only once, but at least twice.
Tip 2 : Also take care of theory subjects because they are asked a lot in interviews.
Tip 3 : Do competitive coding contest at least once in a week.
Tip 1 : Never write something which you aren't well aware of.
Tip 2 : Try building resume on Latex
I applied via Campus Placement and was interviewed before Aug 2021. There were 3 interview rounds.
3 coding questions needed to be completed in 1.5 hours.
Sort a string based on the frequency of its characters.
Create a hash table to store the frequency of each character.
Sort the characters based on their frequency using a sorting algorithm.
Reconstruct the string based on the sorted characters and their frequency.
Q1 - Pre order traversal without recursion. Q2 - Reverse a linked list.
Q1: Use a stack to keep track of nodes. Start with root, push it to stack. Pop top node, print it, push right and left children to stack.
Q2: Traverse the linked list and change the direction of the pointers. Set the head of the reversed list as the last node of the original list.
I was interviewed before May 2021.
Round duration - 60 minutes
Round difficulty - Medium
You are provided with an array/list 'ARR' consisting of 'N' integers and an integer 'TARGET'. The task is to determine if there exist four distinct numbers in 'ARR' such that th...
The task is to determine if there exist four distinct numbers in an array that sum up to a given target value.
Iterate through all possible combinations of four distinct numbers in the array.
Use a nested loop to check all combinations efficiently.
Keep track of the sum of each combination and compare it with the target value.
Return 'Yes' if a valid combination is found, otherwise return 'No'.
Round duration - 50 minutes
Round difficulty - Medium
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.
You're provided with a Binary Search Tree (BST) containing 'N' nodes with integer values and two specific nodes, 'P' and 'Q'.
Your task is to identify th...
Find the lowest common ancestor of two nodes in a Binary Search Tree.
Traverse the BST from the root to find the LCA of the given nodes.
Compare the values of the nodes with the values of P and Q to determine the LCA.
Handle cases where one node is the ancestor of the other or when one of the nodes is the root.
Use recursion to efficiently find the LCA in the BST.
Consider edge cases such as when the nodes are not present i
Round duration - 120 Minutes
Round difficulty - Medium
Given an array or list ARR
consisting of N
integers, your task is to identify all distinct triplets within the array that sum up to a specified number K
.
A t...
The task is to find all distinct triplets in an array that sum up to a specified number.
Iterate through all possible triplets using three nested loops.
Check if the sum of the triplet equals the target sum.
Print the triplet if found, else print -1.
Yes, I was given a schema and asked to write SQL queries based on it.
I was given a schema for a database that included tables, columns, and relationships between them.
I had to write SQL queries to retrieve specific data from the database based on the schema provided.
For example, I was asked to write a query to retrieve all customers who made a purchase in the last month.
I had to understand the schema to correctly write...
Round duration - 20 Minutes
Round difficulty - Easy
Tip 1 : Do prepare for SQL queries
Tip 2 : Try to practice DSA questions
Tip 3 : Go through the projects that you did
Tip 1 : Try to explain your project in 2-3 lines
Tip 2 : Put only those thing that you are confident about
HashedIn by Deloitte interview questions for popular designations
I was interviewed in Feb 2021.
Round duration - 85 Minutes
Round difficulty - Medium
3 Coding questions were asked . 1 - easy , 2- medium , 3 - medium -hard .
Convert a given binary tree into its mirror tree, where the left and right children of all non-leaf nodes are interchanged.
An integer ‘T’ denoting the number o...
Convert a binary tree into its mirror tree by interchanging left and right children of non-leaf nodes.
Traverse the tree in postorder fashion and swap the left and right children of each node.
Recursively call the function on the left and right subtrees.
Modify the tree in place without creating a new tree.
Example: For input 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1, the output should be 7 4 2 1 6 3 5.
Given an integer N
, determine whether its binary representation is a palindrome.
The first line contains an integer 'T' representing the number of test cases.
The next 'T'...
Check if the binary representation of an integer is a palindrome.
Convert the integer to binary representation
Check if the binary representation is a palindrome by comparing it with its reverse
Return true if it is a palindrome, false otherwise
Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make...
The task is to find the total number of ways to make change for a specified value using given denominations.
Create a dynamic programming table to store the number of ways to make change for each value up to the target value.
Iterate through each denomination and update the table accordingly.
The final answer will be the value in the table at the target value.
Consider edge cases such as when the target value is 0 or when ...
Round duration - 45 Minutes
Round difficulty - Easy
This was the combo of coding the subject theory round . I was several DSA problems . I was able to give optimal solutions for them .Also the questions related to OS , CN and DBMS were asked.
Determine if a permutation of a given string S
can form a palindrome.
string S = "aab"
"True"
The permutation "aba" o...
Check if a permutation of a string can form a palindrome.
Create a frequency map of characters in the string.
Count the number of characters with odd frequencies.
If there is at most one character with an odd frequency, the string can form a palindrome.
Round duration - 60 Minutes
Round difficulty - Easy
Main focus was on design .
Design a Movie Player system
1. Create a user interface for selecting and playing movies
2. Implement features like play, pause, stop, rewind, fast forward
3. Include options for adjusting volume and screen brightness
4. Support different video formats like MP4, AVI, MKV
5. Allow users to create playlists and save favorite movies
Tip 1 : Brush up your concept of DBMS , OS and CN
Tip 2 : Practise DSA properly
Tip 3 : Make you resume crisp and clear
Tip 1 : Make you resume short and clear .
Tip 2 : Mention you projects with deployed links.
Get interview-ready with Top HashedIn by Deloitte Interview Questions
I applied via Referral and was interviewed before Nov 2021. There were 4 interview rounds.
First round is a basic DS-Algo Round. It was a pen & paper interview. 2 interviewers asked me to write code for some problems such as:
1. You have an unsorted array of 0s and 1s, find the first 1. Different approaches for it.
2. What is setTimeOut in Node.JS?
3. How can you use 2 stacks as an array.
4. You have 2 sorted arrays. Merge them into a single array.
OS processes are instances of a program that are being executed by the operating system.
Processes are managed by the operating system's scheduler.
Each process has its own memory space and system resources.
Processes can communicate with each other through inter-process communication (IPC).
Examples of processes include web browsers, media players, and text editors.
Threads are lightweight processes that enable multitasking within a single process.
Threads allow multiple tasks to be executed concurrently within a single process.
They share the same memory space and resources of the parent process.
Threads can improve performance by utilizing available CPU resources more efficiently.
Examples include web servers handling multiple requests simultaneously and video games rendering graphi
Node.js is a powerful and efficient server-side JavaScript runtime environment.
Node.js is fast and scalable, making it ideal for building real-time applications.
It uses an event-driven, non-blocking I/O model, which makes it lightweight and efficient.
Node.js has a large and active community, with many useful libraries and modules available.
It allows for easy sharing of code between the server and client, using JavaScri...
Python is a general-purpose language while Node.JS is a JavaScript runtime environment.
Python is used for web development, data analysis, artificial intelligence, and scientific computing.
Node.JS is used for building scalable network applications and real-time web applications.
Python is slower than Node.JS in terms of performance.
Python has a larger standard library than Node.JS.
Python is easier to learn and has a simp
SQL is a relational database management system while NoSQL is a non-relational database management system.
SQL databases are table-based while NoSQL databases are document-based, key-value pairs, graph databases, or column-based.
SQL databases are structured while NoSQL databases are unstructured.
SQL databases use SQL (Structured Query Language) for querying and managing data while NoSQL databases use different query lan...
A Reddit-like application for sharing and discussing content
User authentication and authorization
Post creation and voting system
Commenting system
Subreddit creation and management
Search functionality
Real-time updates using websockets
CORS stands for Cross-Origin Resource Sharing. It is a security feature implemented in web browsers to restrict web pages from making requests to a different domain.
CORS is used to prevent malicious websites from accessing sensitive data from other websites.
To handle CORS, the server needs to include specific headers in the response to allow the browser to make requests from a different domain.
The most common header us...
Low level design for authentication
Define authentication requirements
Choose appropriate authentication mechanism
Design authentication flow
Implement secure storage of credentials
Consider multi-factor authentication
Include error handling and logging
An e2e system architecture design for user input to response output
Identify user requirements and define system goals
Choose appropriate technologies and frameworks
Design system components and their interactions
Ensure scalability, reliability, and security
Test and validate the system before deployment
I was interviewed before May 2021.
Round duration - 60 Minutes
Round difficulty - Easy
Given 'K' different arrays that are individually sorted in ascending order, merge all these arrays into a single array that is also sorted in ascending order.
Merge K sorted arrays into a single sorted array.
Create a min-heap to store the first element of each array along with the array index.
Pop the smallest element from the heap and add it to the result array.
If the array from which the element was popped has more elements, add the next element to the heap.
Repeat until all elements are merged into a single sorted array.
Round duration - 60 Minutes
Round difficulty - Easy
Tip 1 : Solve basic data structures question
Tip 2 : master in front end or backend
Tip 3 : practice some basic SQL queries
Tip 1 : Keep it short and simple
Tip 2 : Update according to the JD
I applied via Inhyre and was interviewed in Sep 2021. There were 4 interview rounds.
I applied via Referral and was interviewed in Nov 2021. There were 3 interview rounds.
I applied via Company Website and was interviewed in May 2021. There were 3 interview rounds.
Top trending discussions
The duration of HashedIn by Deloitte interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 85 interviews
Interview experience
based on 414 reviews
Rating in categories
Software Engineer
424
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer2
378
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
199
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer II
174
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
164
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech