ManuShi98 / blogcomment

0 stars 0 forks source link

Leetcode - 1776 Car Fleet II | ManuShi98 #19

Open ManuShi98 opened 2 years ago

ManuShi98 commented 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.