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 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
- Morning time
- Environment was good.
- No
- Interviewer was good



'N' = 4,
4 can be represented as 2^2. So, 4 is the power of two, and hence true is our answer.




x should never be equal to the current value of 'N'.


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.




As taught in the video, you just have to modify the code so that instead of printing numbers, it should output stars ('*').
- 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 : Communicate well
Tip 2 : Give point to point answer
Tip 3 : Highlight your skills

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?