Tip 1: Practice DP more in DSA.
Tip 2: Be fully aware of your projects.
Tip 3: Stay confident during the interview.
Tip 1: Make sure you mention what you know thoroughly.
Tip 2: Make it ATS-friendly.
It was conducted during the daytime and had a duration of 3 hours.



Input: ‘N’ = 4, ‘arr’ = [3, 1, 2, 4], 'K' = 6
Output: 2
Explanation: The subarrays that sum up to '6' are: [3, 1, 2], and [2, 4].
Tip 1: Make sure you complete it on time.

Expanse of a sequence of length 1 is always 0.
Tip 1: Hard-level questions require much practice.


1. The first character of the string is guaranteed to be an integer which denotes the root element of the tree.
2. This is followed by zero, one or two pairs of parenthesis, which contains a child binary tree with the same structure.
3. The first parenthesis denotes the left child of the binary then the right child.
Let str= “1(2)(3)”
The tree will be:

The first element i.e 1 is the root node and the first bracket signifies the left child of the root node which has only 1 element i.e 2 and the second bracket signifies the right child of the root node that has only 1 node i.e 3 . Hence we have the binary tree as shown above.
It was at 10 AM in the morning.
The interviewer was quite good.

Input: 'X' = 2, ‘Y’=3
Output: "6"
As “6” is the smallest number that is divisible by both 2 and 3.
Tip 1: More focus on DP problems in DSA.


1. Choose any list ‘A’ or ‘B’.
2. Traverse from left to right.
3. After picking a number, if the picked number is present in both the arrays, you are allowed to traverse to the other array.
Since the answer can be very large, print answer % (10^9 + 7).
If the given array are ‘A’ = [1,3,5,7,9] and ‘B’ = [3,5,100]”.The maximum score can be achieved is 109[1+3+5+100].
Tip 1: Make sure you practice more for hard-level questions.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which data structure is used to implement a DFS?