Tip 1 : Make array very strong
Tip 2 : Always try to think the solution of the problem in O(n) which you have already done in brute force manner
Tip 3 : Do questions as much as possible
Tip 1 : Project must be thoroughly prepared and must be in the resume
Tip 2 : Always make a resume according to company's need
Aptitude Question only as Usual



Input
4 2
0 1 2 2
2 4 4 5
Output
0
Explanation:
Here, Bob will first fall on the second prop, and he will travel till endpoint 2. Then he will fall on the first prop and travel till the endpoint 0. hence the final position will be X = 0.
Coding problem



If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.




In this example, this graph is directed and there are two triangles possible.
Triangle 1 : (0 3 2)
Triangle 2 : (0 1 2)

In this example, this graph is undirected and there are two triangles possible.
Triangle 1 : (0 3 2)
Triangle 2 : (0 1 2)
Just very basic question related to HR round .

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?