[Solved] Furthest Building You Can Reach C++, Java, Python – Microsoft, Google , Amazon, Media.net-1642
![[Solved] Furthest Building You Can Reach C++, Java, Python - Microsoft, Google , Amazon, Media.net-1642 Furthest Building](https://realcoder.techss24.com/wp-content/uploads/2024/03/output-10-768x512.png)
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…