i
HashedIn by
Deloitte
Filter interviews by
SQL query to retrieve the second highest salary from a salary table.
Use the DISTINCT keyword to avoid duplicate salaries.
Order the salaries in descending order and limit the results.
A common approach is to use a subquery to find the maximum salary that is less than the highest salary.
Rotate an array of strings to the left by k places efficiently.
Use the modulo operator to handle cases where k is larger than the array length.
Example: For array ['a', 'b', 'c', 'd'] and k=2, result is ['c', 'd', 'a', 'b'].
Reverse the entire array, then reverse the first n-k elements and the last k elements.
Time complexity is O(n) and space complexity is O(1) if done in place.
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.
Given a column title as it appears in an Excel sheet, your task is to return its corresponding column number.
S = "AB"
28
The sequ...
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 pos...
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...
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 N
...
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.
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 two...
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.
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.
I appeared for an interview in Mar 2025, where I was asked the following questions.
I appeared for an interview 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 applied via Company Website and was interviewed in May 2021. There were 3 interview rounds.
Top trending discussions
I applied via Naukri.com and was interviewed before Mar 2020. There were 4 interview rounds.
Hashtable is synchronized while hashmap is not.
Hashtable is thread-safe while hashmap is not.
Hashtable does not allow null keys or values while hashmap allows one null key and multiple null values.
Hashtable is slower than hashmap due to synchronization.
Hashtable is a legacy class while hashmap is a newer implementation.
Hashmap is not thread-safe while Concurrent Hashmap is thread-safe.
Hashmap is not suitable for multi-threaded environments as it can lead to race conditions and data inconsistencies.
Concurrent Hashmap allows multiple threads to access and modify the map concurrently without any data inconsistencies.
Concurrent Hashmap uses a technique called lock striping to achieve thread-safety.
Concurrent Hashmap is slower than Hashma...
I applied via Naukri.com and was interviewed before Sep 2020. There were 4 interview rounds.
I appeared for an interview in Sep 2017.
I applied via Naukri.com and was interviewed before May 2018. There were 5 interview rounds.
I appeared for an interview in Sep 2019.
I applied via Recruitment Consultant and was interviewed before Jan 2020. There were 5 interview rounds.
I am proficient in Java, Python, and C++. I have 2 years of experience in software development. I have excellent communication skills for client interaction.
Proficient in Java, Python, and C++
2 years of software development experience
Excellent communication skills for client interaction
Some of the top questions asked at the HashedIn by Deloitte Software Engineer interview for freshers -
based on 1 interview experience
Difficulty level
Duration
based on 66 reviews
Rating in categories
Software Engineer
473
salaries
| ₹8.1 L/yr - ₹14.7 L/yr |
Software Engineer2
459
salaries
| ₹12 L/yr - ₹21 L/yr |
Software Engineer II
232
salaries
| ₹11.5 L/yr - ₹20 L/yr |
Software Developer
221
salaries
| ₹8.1 L/yr - ₹17.4 L/yr |
Senior Software Engineer
217
salaries
| ₹12.2 L/yr - ₹21.4 L/yr |
ITC Infotech
CMS IT Services
KocharTech
Xoriant