Tip 1: Practice a lot of questions on online coding platforms. Try to cover a variety of topics and avoid sticking to just one.
Tip 2: Be confident during the interview. Feel free to ask questions if you have any doubts.
Tip 3: Try to maintain a decent CGPA (8.5+). This might help in the screening round of some companies.
Tip 1: Mention the projects on your resume that you would be comfortable explaining in great detail.
Tip 2: Remember to add a skill to your resume that you won't be able to explain in detail if questioned.



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.



For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].
Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].
Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].
Interval [10, 12] does not overlap with any interval.
Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
1. Sort the intervals.
2. While traversing the intervals vector, we will encounter two cases:
Case 1: If there is an overlap between the intervals, take the maximum element from the ending point, and thus, merge them.
Case 2: If there is no overlap, push that interval to our resultant vector.
You have someone working for you for five days and a gold bar to pay him. Giving him a piece of gold at the end of every day would be best. What is the fewest number of cuts to the bar of gold that will allow you to pay him 1/5th each day?
Tip 1: Work out your thought process on paper.
Tip 2: Try the hit-and-trial method to solve and work out the solution. At times, this may provide insight into how the problem works, and you can adjust your solution accordingly.
Three employees want to know the average of their salaries. They are not allowed to share their salaries.
The new number is now the sum of the three salaries, and the average can be calculated by dividing the sum by 3.



In zigzag order, level 1 is printed from left to right fashion, level 2 is printed from right to left. and level 3 is printed from left to right again, and so on…..
For the given binary tree

The zigzag traversal is [1, 4, 3, 5, 2, 7, 6]
I was asked to explain my project, which I've mentioned in my resume.
Tip 1: Know the tech stack of your project very well.
Tip 2: Know the future scope and possible improvements that your project can have.
HR-based questions on how I would tackle handling deadlines.
Tip 1: Be confident when telling your approach.
Tip 2: Take a few seconds to think and form your answer before speaking.

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?