Tip 1 : Practice medium level questions on leetcode from all topics
Tip 2 : Start preparation in first year itself
Tip 1 : have atleast one unique project on it
Tip 2 : maintain a good cgpa
We had to solve MCQs regarding computer basics and coding



An Euler path is a path in a graph such that every edge must be visited exactly once. You can visit the same vertex multiple times.
I had an online interview in the morning. The interviewer was friendly and first took a brief introduction then asked DSA questions.



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
I first solved this using a stack. Then I optimized it and used 2 pointer approach.
This interview was in the evening. Again the interviewer was friendly and after a brief introduction he asked me 2 DSA questions



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then (2, -3, 1), (-3, 2, 1) etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".



1. You can not slant the container i.e. the height of the water is equal to the minimum height of the two lines which define the container.
2. Do not print anything, you just need to return the area of the container with maximum water.

For the above Diagram, the first red marked line is formed between coordinates (2,0) and (2,10), and the second red-marked line is formed between coordinates (5,0) and (5,9). The area of water contained between these two lines is (height* width) = (5-2)* 9 = 27, which is the maximum area contained between any two lines present on the plane. So in this case, we will return 3* 9=27.

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?