Open ManuShi98 opened 2 years ago
https://manushi98.github.io/2022/07/01/Leetcode%20-%201776%20Car%20Fleet%20II/
In the discussion of this problem, most people said we can use monostack to solve it. However, they didn’t tell us why. Here I want to give an explanation with more details.
https://manushi98.github.io/2022/07/01/Leetcode%20-%201776%20Car%20Fleet%20II/
In the discussion of this problem, most people said we can use monostack to solve it. However, they didn’t tell us why. Here I want to give an explanation with more details.