swift-algorithm-club
swift-algorithm-club copied to clipboard
Implemented binary indexed tree.
Checklist
- [x] I've looked at the contribution guidelines.
- [x] This pull request is complete and ready for review.
Description
Implemented Binary Indexed (Fenwick) tree. Fenwick Tree is a data structure that can efficiently update elements and calculate prefix sums in a table of numbers.
Hi Algorithm Club 👋
Thank you for such a nice and unique repository! I really appreciate what you do here and really love algorithms like you. I found there are no Fenwick tree data structure and implemented it on my own to make this repo a little bit better. Hopefully, you will like the proposed changes.