Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PrefixSumComputer

Index

Constructors

Properties

prefixSum: Uint32Array

prefixSum[i] = SUM(heights[j]), 0 <= j <= i

prefixSumValidIndex: Int32Array

prefixSum[i], 0 <= i <= prefixSumValidIndex can be trusted

values: Uint32Array

values[i] is the value at index i

Methods

  • _getAccumulatedValue(index: number): number
  • changeValue(index: number, value: number): boolean
  • getAccumulatedValue(index: number): number
  • getCount(): number
  • getTotalValue(): number
  • insertValues(insertIndex: number, insertValues: Uint32Array): boolean
  • removeValues(startIndex: number, count: number): boolean