I have been trying to solve this question but my solution is failing one test case and I am not able to figure out what is wrong with my solution. Here is link to my solution, please help me in figuring out what is wrong with my solution. asked 26 Jan '18, 19:58

Check your case 2 " if (cranePosition < commands.length  1) " rather than "command.length1" shouldnt it be a.length1 . answered 27 Jan '18, 02:30
Thanks @phantomhive Such a silly mistake I did.
(27 Jan '18, 10:05)
