Tip 1: Prepare your resume well.
Tip 2: Deploy your projects so the interviewer can view them. Also, provide a hyperlink in your resume.
Tip 3: Be thorough with Data Structures and Algorithms. Also, prepare well for topics such as OS and DBMS.
Tip 1: Deploy your projects so that the interviewer can view them. Also, provide a hyperlink to them on your resume.
Tip 2: It's not important to have fancy projects. Only mention those you're confident about.



At first, I couldn’t think of any approach, but I provided the interviewer with a completely brute-force solution, which did not satisfy him. Then, I considered using sorting, but despite making a lot of effort, I still couldn’t come up with a proper approach. Eventually, the interviewer moved on to the next question. Also, I was a bit nervous at that time.



Firstly, I pretended that I was seeing this question for the first time. Then, I explained the sorting-based solution to him. After thinking for a few minutes, I simply sorted both the arrival and departure time arrays and found the minimum number of platforms required.



Type 1: Two Wheeler Road, It means only vehicles having two wheels can use this road.
Type 2: Four Wheeler Road, It means only vehicles having four wheels can use this road.
Type 3: Both two and four Wheeler Road, It means this road can be used by both type of vehicles.
1. Roads may form a cycle.
2. The cities do not have multiple same roads i.e all the roads are unique.
3. If every city cannot be reached, then return -1.
There is a country with 'N' cities and 'M' bidirectional roads of three types:
The problem is to find the maximum number of roads that can be removed while ensuring that a path exists between every pair of cities for both two-wheeler and four-wheeler vehicles.
An archer is hitting a target (a circle). He fires the first shot and then the second shot. Given that his first shot was better than the second, find the probability that the third shot he fires is the best among the three. The three shots are independent of each other.
This was a probability-based question, and I am weak in that. I considered various approaches, such as Bayes' theorem and intersection, but I could not find the answer to the question.



You must sell the stock before you buy it again.
This was a standard question, and I solved it using the concepts of local minima and local maxima. I also wrote the code for the interviewer, and he was satisfied with both my code and my approach.



A leaf is a node with no children.
For the given binary tree
Output: 2
The shortest path is from root node 1 to leaf node 2 which contains 2 nodes in the path. Hence, the minimum depth is 2.
I first presented him with a recursive approach. Then, he asked me to optimize it for a skewed tree. I provided a level-order traversal-based approach, and he was happy with it.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?