Problem link — https://leetcode.com/problems/furthest-building-you-can-reach/
I am able to come up with the solution after some time but I still don't know and am not able to debug why my previous solution giving wrong answer for particular test case.Could anyone help me to figure it out?
code: