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




