New CSES Tasks Editorials

Правка en6, от Sul_A., 2025-08-07 07:03:16

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
Minimal Grid Path

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

Additional Problems

Bubble Sort Rounds I
Counting LCM Arrays
Subsets with Fixed Average
Two Array Average

Additional Problems II

GCD Subsets

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en7 Английский Sul_A. 2025-08-07 07:03:39 1 (published)
en6 Английский 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 Английский Sul_A. 2025-05-15 21:52:44 0 (published)
en4 Английский 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 Английский Sul_A. 2025-05-15 12:09:08 1 (published)
en2 Английский Sul_A. 2025-05-15 12:07:10 670 Tiny change: ' $20$.\n\n' -> ' $20$.\n\n</spoiler>\n'
en1 Английский Sul_A. 2025-05-15 11:55:15 4275 Initial revision (saved to drafts)