Tip 1 : Make sure your resume contains some projects even in your first year also
Tip 2 : Start doing DSA as early as possible
Tip 3 : Give mock interviews with your friends
Tip 1 : Do add good projects to your resume
Tip 2 : If you are in your first or 2nd year and don't have many achievements then add your previous achievements like olympiads or any other in your school life
It had 5 aptitude-based MCQs, 1 DSA-based MCQ, and 2 Coding Questions. The test as a whole can be categorized as somewhere between easy and medium and we almost had 2 hours to attempt the questions



This was famous 3 sum problem.I used hashmap to solve this.This approach uses extra space but is simpler than the two-pointers approach.
Just Run two loops outer loop from start to end and inner loop from i+1 to end. Create a hashmap or set to store the elements in between i+1 to n-1. So if the given sum is x, check if there is a number in the set which is equal to x – arr[i] – arr[j]. If yes print the triplet.

An equilibrium point is a point where net force is 0 i.e repulsive force of left side magnets is equal to the repulsive force of right side magnets.
If there are N magnets, then there will be N - 1 equilibrium points.
The array “ARR” which denotes the positions of the magnets is in a sorted fashion.
If ARR = {1, 3} , then the output will be 2.
Explanation: For two points, the mid-point will have a net force of 0 because the distance from the mid-point will be equal.
Define a function to calculate the net force at a particular point. This can be done as the definition of the function is given in the question(1/d, where d is the distance).
Take the required inputs
Traverse through the array and apply the binary search algorithm between two adjacent elements.
In the binary search algorithm, we fix a left and a right boundary and then calculate the middle value. We check the net force on the middle point.
If the net force on the middle point is greater than 0 then we move the search space towards the right.
If the net force on the middle point is less than 0 then we move the search space towards right.
If the net force is exactly zero we end the search and move on to find the next equilibrium position between the next pair.
How many comparisons are required to merge two sorted lists of sizes m and n into a
single sorted list of size m+n?
Consider a linked list of n elements . What is the time taken to insert an element at a
position that is pointed to by some pointer?
In many applications like social media, the app suggests the list of friends that a
particular user may know. It may be used on a system that has over a billion users.
Which algorithm is best to implement this feature?
It was a fairly medium interview experience for me


We will declare a map. In that map, we are going to store the value of sum and the current value of an index, if the condition satisfies. Take two variables and set sum to 0 and outputLength to 0. While traversing the array, we will pick each element of an array, and check if arr[i] is equal to 0, if it is found to be equal, we will add -1 to sum and store it to sum, else if we have not found to be 0, we will be adding the positive 1 to sum and store it to sum.
The reason behind that negative 1 and positive 1 is, we are pretending all 0’s to -1 and add them with 1, so we will get the 0 always. But we will check for positive 1 in sum, which indicates that we will have one extra 1 then the count of 0’s.
Suppose, we will take 1, 0, 1 if we are pretending 0 as -1, we will get that 0 with first 2 numbers, and with the third number, we can found that our condition is fulfilled. We got a sub-array of 1’s and 0’s with one extra count of 1 than 0. We get our condition satisfied. That’s why we will be looking for if the sum is equal to 1 in the next step of an algorithm and will be updating the length of outputLength. In the last, if the statement, if we get the new output length, we need to update the previous one with the current outputLength and we will return outputLength
It was a fairly easy round and the interviewee was quite understanding
If you are not able to complete your project within the deadline then how will you handle that situation?
If your team member is not performing well then how will you manage?
Explain your project
Tip 1 : Do give some mock interviews before your real interview
Tip 2 : Be confident and please don't lie
Tip 3 : Add projects and discuss them clearly

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?