0303_range-sum-query-immutable

command
v0.0.0-...-60194e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Unlicense Imports: 0 Imported by: 0

README

0303_range-sum-query-immutable

先行计算.

sumRange(i, j) = sum - sumRange(0, i) - sumRange(j, len(arr))

上述范围都是左闭右开([i, j)), 所以注意边界处理.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL