MCPcopy Create free account
hub / github.com/aylei/leetcode-rust / Solution

Class Solution

src/solution/s1046_last_stone_weight.rs:37–37  ·  view source on GitHub ↗

* [1127] Last Stone Weight * * We have a collection of rocks, each rock has a positive integer weight. * * Each turn, we choose the two heaviest rocks and smash them together. Suppose the stones have weights x and y with x <= y. The result of this smash is: * * * If x == y, both stones are totally destroyed; * If x != y, the stone of weight x is totally destroyed, and the stone of weig

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected