Блог пользователя death_bringer

Автор death_bringer, 3 года назад, По-английски

During Upsolving, I have seen that some problems can be solved using the prefix sum method way more easily and efficiently. Which topic is new for me. So, I tried practicing it from cses problemset but it has only 3-4 problems related to prefix sum and codeforces doesn't have any Prefixsum tag for problems.

So, What would be the best way to practice prefix sum problems.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится +16 Проголосовать: не нравится

USACO Guide has a section on prefix sums, doing those problems is sufficient to get familiar with it. As you don't need to dig deep in this topic. There are far better and complex topics to learn about.

https://usaco.guide/silver/prefix-sums?lang=cpp