i
HashedIn by
Deloitte
Filter interviews by
Instagram's database design focuses on user profiles, posts, comments, likes, and relationships for efficient data retrieval.
User Table: Stores user information like username, email, password hash, profile picture.
Post Table: Contains post details such as image URL, caption, timestamp, and user ID.
Comment Table: Links comments to posts and users, storing comment text and timestamps.
Like Table: Tracks likes on post...
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.
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
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.
What people are saying about HashedIn by Deloitte
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.
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
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
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
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 an...
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
I appeared for an interview 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 appeared for an interview in Mar 2025, where I was asked the following questions.
Instagram's database design focuses on user profiles, posts, comments, likes, and relationships for efficient data retrieval.
User Table: Stores user information like username, email, password hash, profile picture.
Post Table: Contains post details such as image URL, caption, timestamp, and user ID.
Comment Table: Links comments to posts and users, storing comment text and timestamps.
Like Table: Tracks likes on posts, li...
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...
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.
I appeared for an interview 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 appeared for an interview 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 appeared for an interview 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 appeared for an interview 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
based on 9 interview experiences
Difficulty level
Duration
based on 20 reviews
Rating in categories
Software Engineer
473
salaries
| ₹5.9 L/yr - ₹17.1 L/yr |
Software Engineer2
448
salaries
| ₹12 L/yr - ₹21 L/yr |
Software Developer
215
salaries
| ₹6 L/yr - ₹20 L/yr |
Senior Software Engineer
215
salaries
| ₹8.5 L/yr - ₹27 L/yr |
Software Engineer II
213
salaries
| ₹9.7 L/yr - ₹19 L/yr |
ITC Infotech
CMS IT Services
KocharTech
Xoriant