Files
Codeforces-solutions/problemlist.md
2026-04-26 22:08:31 -03:00

6.0 KiB

Problem List

A little collection of interesting problems that I randomly decided to do.

Ad-hoc/Greedy

Data structures

  • D. Recommendations

    Can be solved with two sets or binary search with sparse table.

  • D. Kevin and Competition Memories

    Another interesting sparse table problem, I'm not sure it needs one, but I solved with one.

  • D. R3D2 and Droid Army

    Another sparse table problem.

  • E. Turn Off The TV

    Can be solved with sparse table or coordinate compression with prefix sum.

  • D. CGCDSSQ

    Can be solved in two ways, but the sparse table one is interesting, although the other way seems more versatile.

  • A. Ntarsis' Set

    REALLY good binary search problem, amazing to do and think about, the binary search isn't obvious at all.

Reroot

  • D. Tree XOR

    Interesting reroot problem, there's not much for me to say about it.

  • F. Gardening Friends

    Very standard reroot problem, but interesting as an exercise.

DP

Graph

Math

  • E2. Rudolf and Snowflakes (hard version)

    Not so hard if you know how to deal with C++ or any other language with big integer, but it's interesting to think about regardless, can also be solved with a binary search, but it's not required.

  • F. Expected Median

    Kinda introductory combinatory problem, but interesting as an exercise.

DSU

Bridge

Divide and Conquer

  • F. BattleCows

    Interesting problem to think about, good introduction to divide and conquer in my opinion and can be used as a bridge to segment trees.

String