1631. Path With Minimum Effort (dijkstra

這題會一直帶著 effort from start to end

所以中間要更新時, 要最大的(origin effort and new effort)

但排出 pq 時, 要最小的, 這樣最後才會是 min effort

use a class to hold pq's data

new version

Last updated

Was this helpful?