Tip 1 : Solve RS Aggarwal Aptitude and Problem Solving Books.
Tip 2 : Practice Coding questions from prepInsta.
Tip 3 : Worked on communication skills
Tip 1 : Mark skills with Bold letters.
Tip 2 : Mention projects on resume
- Morning time
- Environment was good.
- No
- Interviewer was good





Consider the above example, if we break the tree by removing the edge between nodes that has integers 5 and 6 then we get the maximum product of the sum of integers on nodes i.e. ( (6 + 4 + 1) * (5 + 1 + 3 + 2) ) = 121.
The answer may be very large so, you have to take the modulo with 10^9 + 7.


For the test case:
N = 3, Q = 2
Edge 1 connects 0 and 1
Edge 2 connects 0 and 2
battles = [1, 2]
The king has to visit first city 1 and then city 2. To visit city 1, he has to travel 1 unit, and now he is in city 1. To visit city 2 from city 1, he has to travel another 2 units. So overall, he has to travel 3 units of distance.



Let the input be [1,0,2,1] and [0,1,1,2].
So, the coordinates of the four points be [ {1, 0}, {0, 1}, {2, 1}, {1, 2} ]

From the above image, we can see that it is a square. Thus, the output will be ‘Yes’.



1
23
345
4567
- Morning time
- Environment was good.
- No
- Interviewer was good
1. Tell me about yourself.
2. Why are you interested in this position?
3. Why are you leaving your current job?
4. Can you describe a work or school instance in which you messed up?
5. Tell me about a time when you experienced conflict with a co-worker and how you dealt with it?
Tip 1 : Practice on mock test
Tip 2 : Go with commutation skills
Tip 3 : Be positive while communicate

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?