https://github.com/kantuni/cses
Solutions to CSES Problems
https://github.com/kantuni/cses
competitive-programming cses solutions
Last synced: about 2 months ago
JSON representation
Solutions to CSES Problems
- Host: GitHub
- URL: https://github.com/kantuni/cses
- Owner: kantuni
- Created: 2022-03-28T19:44:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T06:04:15.000Z (6 months ago)
- Last Synced: 2025-01-18T07:44:28.116Z (3 months ago)
- Topics: competitive-programming, cses, solutions
- Language: C++
- Homepage: https://cses.fi/problemset
- Size: 149 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solutions to [CSES](https://cses.fi/problemset/) Problems
## Introductory Problems
1. Weird Algorithm
[[source]](https://cses.fi/problemset/task/1068)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/weird-algorithm.cpp)
2. Missing Number
[[source]](https://cses.fi/problemset/task/1083)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/missing-number.cpp)
3. Repetitions
[[source]](https://cses.fi/problemset/task/1069)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/repetitions.cpp)
4. Increasing Array
[[source]](https://cses.fi/problemset/task/1094)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/increasing-array.cpp)
5. Permutations
[[source]](https://cses.fi/problemset/task/1070)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/permutations-v2.cpp)
6. Number Spiral
[[source]](https://cses.fi/problemset/task/1071)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/number-spiral.cpp)
7. Two Knights
[[source]](https://cses.fi/problemset/task/1072)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/two-knights.cpp)
8. Two Sets
[[source]](https://cses.fi/problemset/task/1092)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/two-sets.cpp)
9. Bit Strings
[[source]](https://cses.fi/problemset/task/1617)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/bit-strings.cpp)
10. Trailing Zeros
[[source]](https://cses.fi/problemset/task/1618)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/trailing-zeros.cpp)
11. Coin Piles
[[source]](https://cses.fi/problemset/task/1754)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/coin-piles.cpp)
12. Palindrome Reorder
[[source]](https://cses.fi/problemset/task/1755)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/palindrome-reorder.cpp)
13. Gray Code
[[source]](https://cses.fi/problemset/task/2205)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/gray-code.cpp)
14. Tower of Hanoi
[[source]](https://cses.fi/problemset/task/2165)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/tower-of-hanoi.cpp)
15. Creating Strings
[[source]](https://cses.fi/problemset/task/1622)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/creating-strings.cpp)
16. Apple Division
[[source]](https://cses.fi/problemset/task/1623)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/apple-division.cpp)
17. Chessboard and Queens
[[source]](https://cses.fi/problemset/task/1624)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/chessboard-and-queens.cpp)
18. Digit Queries
[[source]](https://cses.fi/problemset/task/2431)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/digit-queries.cpp)
19. Grid Paths
[[source]](https://cses.fi/problemset/task/1625)
[[solution]](https://github.com/kantuni/CSES/blob/main/Introductory%20Problems/grid-paths.cpp)## Sorting and Searching
1. Distinct Numbers
[[source]](https://cses.fi/problemset/task/1621)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/distinct-numbers.cpp)
2. Apartments
[[source]](https://cses.fi/problemset/task/1084)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/apartments.cpp)
3. Ferris Wheel
[[source]](https://cses.fi/problemset/task/1090)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/ferris-wheel.cpp)
4. Concert Tickets
[[source]](https://cses.fi/problemset/task/1091)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/concert-tickets.cpp)
5. Restaurant Customers
[[source]](https://cses.fi/problemset/task/1619)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/restaurant-customers.cpp)
6. Movie Festival
[[source]](https://cses.fi/problemset/task/1629)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/movie-festival.cpp)
7. Sum of Two Values
[[source]](https://cses.fi/problemset/task/1640)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/sum-of-two-values.cpp)
8. Maximum Subarray Sum
[[source]](https://cses.fi/problemset/task/1643)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/maximum-subarray-sum.cpp)
9. Stick Lengths
[[source]](https://cses.fi/problemset/task/1074)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/stick-lengths.cpp)
10. Missing Coin Sum
[[source]](https://cses.fi/problemset/task/2183)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/missing-coin-sum.cpp)
11. Collecting Numbers
[[source]](https://cses.fi/problemset/task/2216)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/collecting-numbers.cpp)
12. Collecting Numbers II
[[source]](https://cses.fi/problemset/task/2217)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/collecting-numbers-ii.cpp)
13. Playlist
[[source]](https://cses.fi/problemset/task/1141)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/playlist.cpp)
14. Towers
[[source]](https://cses.fi/problemset/task/1073)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/towers.cpp)
15. Traffic Lights
[[source]](https://cses.fi/problemset/task/1163)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/traffic-lights.cpp)
16. Josephus Problem I
[[source]](https://cses.fi/problemset/task/2162)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/josephus-problem-i.cpp)
17. Josephus Problem II
[[source]](https://cses.fi/problemset/task/2163)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/josephus-problem-ii.cpp)
18. Nested Ranges Check
[[source]](https://cses.fi/problemset/task/2168)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/nested-ranges-check.cpp)
19. Nested Ranges Count
[[source]](https://cses.fi/problemset/task/2169)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/nested-ranges-count.cpp)
20. Room Allocation
[[source]](https://cses.fi/problemset/task/1164)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/room-allocation.cpp)
22. Factory Machines
[[source]](https://cses.fi/problemset/task/1620)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/factory-machines.cpp)
23. Tasks and Deadlines
[[source]](https://cses.fi/problemset/task/1630)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/tasks-and-deadlines.cpp)
24. Reading Books
[[source]](https://cses.fi/problemset/task/1631)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/reading-books.cpp)
25. Sum of Three Values
[[source]](https://cses.fi/problemset/task/1641)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/sum-of-three-values.cpp)
26. Sum of Four Values
[[source]](https://cses.fi/problemset/task/1642)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/sum-of-four-values.cpp)
27. Nearest Smaller Values
[[source]](https://cses.fi/problemset/task/1645)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/nearest-smaller-values.cpp)
28. Subarray Sums I
[[source]](https://cses.fi/problemset/task/1660)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/subarray-sums-i.cpp)
29. Subarray Sums II
[[source]](https://cses.fi/problemset/task/1661)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/subarray-sums-ii.cpp)
30. Subarray Divisibility
[[source]](https://cses.fi/problemset/task/1662)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/subarray-divisibility.cpp)
31. Subarray Distinct Values
[[source]](https://cses.fi/problemset/task/2428)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/subarray-distinct-values.cpp)
32. Array Division
[[source]](https://cses.fi/problemset/task/1085)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/array-division.cpp)
33. Sliding Median
[[source]](https://cses.fi/problemset/task/1076)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/sliding-median.cpp)
34. Sliding Cost
[[source]](https://cses.fi/problemset/task/1077)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/sliding-cost.cpp)
35. Movie Festival II
[[source]](https://cses.fi/problemset/task/1632)
[[solution]](https://github.com/kantuni/CSES/blob/main/Sorting%20and%20Searching/movie-festival-ii.cpp)Problems solved: **53**