9 hardest CSES problems. Hints&solutions.

Revision en10, by coldminded, 2025-01-29 19:09:46

CSES is a well-known resource. It has many problems from a variety of topics. Solutions to almost every problem can be found online. But for some hard problems there are no editorials yet. Getting stuck on these difficult problems can lead to frustration, which is why I decided to write solutions for them.

Inversion Probability

Hint 1
Hint 2
Hint 3
Solution

Letter Pair Move Game

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Similar problem
Solution

Removing Digits II

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Original problem
Solution

Counting Reorders

Hint 1
Hint 2
Hint 3
Original problem
Solution

Filling Trominos

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7
Solution

Functional Graph Distribution

Solution

Grid Completion

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Key observation
Similar problem
Solution

Two Stacks Sorting

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Similar problems
Solution

Grid Path Construction

Tags cses, inclusion-exclusion, dp, constructive, graphs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en14 English coldminded 2025-01-29 21:27:44 3 (published)
en13 English coldminded 2025-01-29 21:25:05 12
en12 English coldminded 2025-01-29 21:21:10 21 (saved to drafts)
en11 English coldminded 2025-01-29 20:16:44 127
en10 English coldminded 2025-01-29 19:09:46 94
en9 English coldminded 2025-01-29 18:07:25 8
en8 English coldminded 2025-01-29 18:04:54 1
en7 English coldminded 2025-01-29 16:48:35 8
en6 English coldminded 2025-01-29 16:43:18 571 Added links to simular/originals problems. Searched through TLE's engine http://yuantiji.ac/en/.
en5 English coldminded 2025-01-29 03:24:05 20
en4 English coldminded 2025-01-29 02:49:30 0 (published)
en3 English coldminded 2025-01-29 02:47:35 13 (saved to drafts)
en2 English coldminded 2025-01-28 14:30:46 0 (published)
en1 English coldminded 2025-01-28 14:29:57 12379 Initial revision (saved to drafts)