Competitive Programming Guide - Fenwick Trees Explained (Range Queries #3)

preview_player
Показать описание

Fenwick trees (also known as BIT - binary-indexed tree) are a useful data structure for range sums with short but mysterious code. I explain what's going on behind the scenes.

Fun fact: I only actually understood Fenwick trees after trying to explain them for this video. Hopefully this explanation helps you too.

Рекомендации по теме
Комментарии
Автор

thank you, Jonathan!
the Fenwick Trees are hard to explain, but you did a good explanation. :)
I wonder if these structures are used in companies because I never learned Fenwick or Segment Trees in college. I mean, if I didn't participate in competitive programming contests I would never hear of these.

jpfr
join shbcf.ru