[Solved] Furthest Building You Can Reach C++, Java, Python – Microsoft, Google , Amazon, Media.net-1642
You are given an integer array heights representing the heights of buildings, some bricks, and some ladders. You start your journey from building 0 and move to the next building by possibly using bricks or ladders. While moving from building i to building i+1 (0-indexed), Return the furthest building index…