MCPcopy Create free account
hub / github.com/EbTech/rust-algorithms / evaluate_impl

Method evaluate_impl

src/li_chao.rs:61–75  ·  view source on GitHub ↗

Because of the invariant established by add_line, we know that the best line for a given point is stored in one of the ancestors of its node. So we accumulate the maximum answer as we go back up the tree.

(&self, x: i64, l: i64, r: i64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

evaluateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected