Tip 1 : Consistency is the key. Solve new problems on consistent basis without looking for the solution. Try to solve the problem on your own, understand the problem, you might take 2-3 days before you get to the final solution but this will help you the most. DON'T LOOK AT SOLUTIONS untill you have tried to solve it as much as you can.
Tip 2 : Practice atleast 70-80 good questions(Medium + Hard) of each Data Structure. Give leetcode contests on regular basis to improve your problem solving skills within the given time span.
Tip 3 : Focus on your core subjects too. Students with good DSA skills but less knowledge of core subjects( OS, OOPS, DBMS, CN) and system design are not able to crack the last rounds of major companies.
Tip 1 : Be honest with whatever you write in the resume.
Tip 2 : Make sure it is a single page resume with proper alignment and readability.
The round had 3 DSA questions and the time given was 70 minutes


A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T. The subtree corresponding to the root node is the entire tree. For better understanding, refer to the image below:-

1. The tree will always be rooted at 0.
2. You can return the count of nodes in any order.
3. The root of any subtree is also counted in the subtree thus the count of nodes in a subtree rooted at a leaf node is
4. You can return the numbers in any order.



Input: Consider the following Binary Tree:
Output:
Following is the level-order traversal of the given Binary Tree: [1, 2, 3, 5, 6, 4]



1. If 'x' == 'y', both stones are totally destroyed;
2. If 'x' != 'y', the stone of weight 'x' is totally destroyed, and the stone of weight 'y' has a new weight equal to 'y - x'.
The interview round started with my introduction followed by a small interaction with the interviewer. The interview was focussed more on my projects that I had done and were mentioned in my resume followed by DSA questions and OOPS.



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.



In the above image, areas in green, red, and violet color are all submatrices of the original 4x4 matrix.
1. Binary valued matrix has only two values in each cell : 0 and 1.
2. A submatrix is a matrix formed by selecting certain rows and columns from a larger matrix.
3. The area of a matrix with 'h' rows and 'w' columns is equal to 'h' * 'w'.

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?