New CSES Tasks Editorials

Revision en4, by Sul_A., 2025-05-15 21:51:52

Editorial for some of the new CSES tasks. Tasks that are trivial or too similar to already existing tasks are not included.

Every time I solve a new nontrivial task, I will add it here.

NOTE: ONLY READ THE SOLUTIONS IF YOU ARE COMPLETELY STUCK AND OUT OF IDEAS. CSES tasks are the kinds of tasks you can solve at a random time by random chance. You might read a task today and solve it next week. Or next month. Or next 3 months. So read at your own risk.

Sorting & Searching

Distinct Values Subsequences

Dynamic Programming

Mountain Range

Range Queries

Visible Buildings Queries
Range Interval Queries
Distinct Values Queries II

Mathematics

Next Prime
Permutation Rounds

Sliding Window Problems

Sliding Window Minimum
Sliding Window Distinct Values
Sliding Window Mode
Sliding Window Mex
Sliding Window Inversions
Alternative solutions

Interactive Problems

Hidden Permutation
Colored Chairs

Advanced Graph Problems

Fixed Length Walk Queries

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en7 English Sul_A. 2025-08-07 07:03:39 1 (published)
en6 English Sul_A. 2025-08-07 07:03:16 3582 Tiny change: 'o cases:\n- $c_n = X$\n- $0 ≤ c' -> 'o cases:\n\n- $c_n = X$\n\n- $0 ≤ c' (saved to drafts)
en5 English Sul_A. 2025-05-15 21:52:44 0 (published)
en4 English Sul_A. 2025-05-15 21:51:52 1355 Tiny change: 'n</spoiler\n\n## Dyn' -> 'n</spoiler>\n\n## Dyn' (saved to drafts)
en3 English Sul_A. 2025-05-15 12:09:08 1 (published)
en2 English Sul_A. 2025-05-15 12:07:10 670 Tiny change: ' $20$.\n\n' -> ' $20$.\n\n</spoiler>\n'
en1 English Sul_A. 2025-05-15 11:55:15 4275 Initial revision (saved to drafts)