Tip 1 : Practice DSA questions from Trees and basic DP problems
Tip 2 : Try referring Striver SDE sheet before interview (Many questions were asked from it)
Tip 3 : Try some questions from Codility platform as written test will be on Codility.
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.



1. The array follows 0-based indexing, so you need to return the 0-based index of the element.
2. Note that the element at the equilibrium index won’t be considered for either left sum or right sum.
3. If there are multiple indices which satisfy the given condition, then return the left-most index i.e if there are indices i,j,k…. which are equilibrium indices, return the minimum among them
4. If no such index is present in the array, return -1.
I have solved it with the most optimized solution.



If a string has 'x' repeated 5 times, replace this "xxxxx" with "x5".
The string is compressed only when the repeated character count is more than 1.
Consecutive count of every character in the input string is less than or equal to 9. You are not required to print anything. It has already been taken care of. Just implement the given function and return the compressed string.
I have solved it with the most optimized solution.
Durantion: 45 minutes (Mine went for 90 minutes)
I was asked questions from CS fundamentals. The interviewer covered all the core subjects (OOPs/ DBMS/ OS/ CN).
Then we jumped into DSA.



You are given the array ‘ARR’ = [1, 1, 1, 1, 1], ‘TARGET’ = 3. The number of ways this target can be achieved is:
1. -1 + 1 + 1 + 1 + 1 = 3
2. +1 - 1 + 1 + 1 + 1 = 3
3. +1 + 1 - 1 + 1 + 1 = 3
4. +1 + 1 + 1 - 1 + 1 = 3
5. +1 + 1 + 1 + 1 - 1 = 3
These are the 5 ways to make. Hence the answer is 5.
I began by explaining the brute force approach to him, then progressed to the best optimal solution while also explaining the time and space complexity.



1. The left subtree of a node contains only nodes with data less than the node’s data.
2. The right subtree of a node contains only nodes with data greater than the node’s data.
3. The left and right subtrees must also be binary search trees.
It is guaranteed that all nodes have distinct data.
It took me some time to reach to the solution and then we had discussion on Level order tree traversal.
It started with basic questions on introduction and then I was asked questions on my projects.
Generally, This round revolves around “Low-Level Design” or “Database schema Design”. However, I was just asked about the approach to design a database.
And then the interviewer shared a google docs link with me where he designed two tables (Employee table and Project table) and then asked me to write SQL queries
Write a SQL query to find the 3rd Highest Salary in the table.
Write a SQL query to fetch the Employee name (in Employee table) and Project name (in Project table) having same project id.



‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’.
‘ARR1’ = [3 4 6 9 10]
I began by explaining the brute force approach to him, then progressed to the best optimal solution while also explaining the time and space complexity.



Input: 'a' = [7, 12, 1, 20]
Output: NGE = [12, 20, 20, -1]
Explanation: For the given array,
- The next greater element for 7 is 12.
- The next greater element for 12 is 20.
- The next greater element for 1 is 20.
- There is no greater element for 20 on the right side. So we consider NGE as -1.
I began by explaining the brute force approach to him, then progressed to the best optimal solution while also explaining the time and space complexity.
Database design of a banking application.
What were the challenges faced while working in a college society? (Also, challenges faced while working in a team for Minor Project?)
What technologies have you been working on?
Why HashedIn?
What is its area of expertise?
What is HashedIn University?
Do you intend to pursue higher studies?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?