TheAlgorithms / Go

Algorithms and Data Structures implemented in Go for beginners, following best practices.
https://the-algorithms.com/language/go
MIT License
16.3k stars 2.63k forks source link

Binary Indexed Tree (BIT) / Fenwick Tree Data structure #563

Closed irfansofyana closed 1 year ago

irfansofyana commented 2 years ago

Description

Binary Indexed Tree (BIT) or sometimes people called fenwick tree is a data structure that can be used to efficiently update elements and calculate prefix sums in a table of numbers.

Details: https://en.wikipedia.org/wiki/Fenwick_tree

For new implementation:

It can be solved efficiently with Binary indexed tree

irfansofyana commented 2 years ago

I will be happy to work on this issue if it's okay

raklaptudirm commented 2 years ago

No need to open issues for missing implementations. Just open a pr and we will review it.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.