This repository contains my (accepted) solutions to the problems on the CSES Problemset, implemented in Rust.
| # | Problem | Solution | Date Solved |
|---|---|---|---|
1 |
Hidden Integer |
1_hidden_integer.rs |
21-Jul-2025 |
2 |
Hidden Permutation |
2_hidden_permutation_sol1.rs |
23-Jul-2025 |
2 |
Hidden Permutation |
2_hidden_permutation_sol2.rs |
23-Jul-2025 |
3 |
K'th Highest Score |
3_kth_highest_score.rs |
02-Aug-2025 |
4 |
Permuted Binary Strings |
4_permuted_binary_strings.rs |
14-Aug-2025 |
5 |
Colored Chairs |
5_colored_chairs.rs |
06-Sep-2025 |
6 |
Inversion Sorting |
6_inversion_sorting.rs |
07-Sep-2025 |
| # | Problem | Solution | Date Solved |
|---|---|---|---|
1 |
Labyrinth |
1_labyrinth.rs |
09-Sep-2025 |
2 |
Message Routes |
2_message_routes.rs |
09-Sep-2025 |
3 |
Monsters |
3_monsters.rs |
11-Sep-2025 |
4 |
Road Reparation |
4_road_reparation.rs |
18-Sep-2025 |
5 |
Road Construction |
5_road_construction.rs |
19-Sep-2025 |
| # | Problem | Solution | Date Solved |
|---|---|---|---|
1 |
Swap Game |
1_swap_game.rs |
11-Sep-2025 |
| # | Problem | Solution | Date Solved |
|---|---|---|---|
1 |
MEX Grid Queries |
1_mex_grid_queries.rs |
01-Feb-2026 |
| # | Problem | Solution | Date Solved |
|---|---|---|---|
1 |
Nim Game I |
1_nim_game_I.rs |
03-Feb-2026 |
2 |
Nim Game II |
2_nim_game_II.rs |
10-Feb-2026 |
3 |
Stair Game |
3_stair_game.rs |
11-Feb-2026 |
4 |
Stick Game |
4_stick_game.rs |
11-Feb-2026 |
| # | Problem | Solution | Date Solved |
|---|---|---|---|
1 |
Tree Distances I |
1_tree_distances_I.rs |
13-Sep-2025 |
2 |
Tree Distances II |
2_tree_distances_II.rs |
16-Sep-2025 |
rustc $file -o sol && ./sol >std.out 2>std.err && bat --language=log std.out std.err && rm -f sol std.out std.errHappy Coding! 🦀