Skip to content

Instantly share code, notes, and snippets.

@Ifihan
Created May 7, 2025 22:33
Show Gist options
  • Save Ifihan/1992b7fb3bf9f03caee19514b31a1d78 to your computer and use it in GitHub Desktop.
Save Ifihan/1992b7fb3bf9f03caee19514b31a1d78 to your computer and use it in GitHub Desktop.
Find Minimum Time to Reach Last Room I

Question

Approach

I used the editorial because my solution (using priority queue (min-heap)) kept on failing some test cases.

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment