Tip 1 : Good Knowledge of Time and Space Complexity
Tip 2 : Practice DSA Questions
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.



The position of the robot can be negative.



Consider ‘arr’ = [1,2,-2,-1], the largest value of ‘K’ is 2, since a negative of 2 is also present in the array. Hence, the answer is 2.






Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: