Skip to content

Moshe-Kessler/fenwick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fenwick

npm package for fenwick tree.

Usage

import Fenwick from "fenwick";

const arr = [1, 2, 3, 4, 5];
const tree = new Fenwick(arr);

tree.sum(arr.length - 1); // 15
tree.update(0, 10);
// tree.sum(arr.length - 1) is now 25

About

npm package for fenwick tree

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published