No description
Find a file
2025-03-22 13:40:22 +01:00
01_binary_search update to edition 2024 2025-03-22 13:40:22 +01:00
02_stack update to edition 2024 2025-03-22 13:40:22 +01:00
03_queue update to edition 2024 2025-03-22 13:40:22 +01:00
04_binary_search_tree update to edition 2024 2025-03-22 13:40:22 +01:00
05_heap update to edition 2024 2025-03-22 13:40:22 +01:00
06_graph update to edition 2024 2025-03-22 13:40:22 +01:00
07_dijkstra update to edition 2024 2025-03-22 13:40:22 +01:00
08_kahn update to edition 2024 2025-03-22 13:40:22 +01:00
09_prim update to edition 2024 2025-03-22 13:40:22 +01:00
simple_array update to edition 2024 2025-03-22 13:40:22 +01:00
.gitignore add binary search exercise 2024-12-12 23:16:52 +01:00
Cargo.lock add graph exercises 2025-01-14 20:19:05 +01:00
Cargo.toml add graph exercises 2025-01-14 20:19:05 +01:00
README.md add list of exercises 2024-12-12 23:20:59 +01:00

data-structure-exercises

This repository contains exercises to implement a selection of the data structures taught in the book "Data Structures the Fun Way". Some exercises are also about the algorithms that use the data structures.

It is forbidden to use the standard library collections to solve these exercises, that would be too easy! That includes everything in std::collections, notably Vec and HashMap.

However, managing memory allocations is not the purpose of these exercises, so the most basic data structure is provided. SimpleArray is basically a Vec with less functionality. All you can do with it is create one of a specified size, set and get elements. To read its documentation in a browser, run cargo doc --package simple_array --open.

List of exercises:

  • binary search
  • stack
  • queue
  • binary search tree
  • heap
  • graph algorithms:
    • dijkstra
    • prim
    • kahn