From the ./python
folder, run
python -m unittest tests/test_*
The code in the book also doesn’t have type hints, which you can find instead in the version hosted here on GitHub. This decision was made to reduce code clutter and to avoid additional cognitive load for beginners who may not be familiar with type hints in Python. Similarly, the book doesn't include tests.
However, in this repository you have the chance to find the full code with type hints, and tests.
| Chapter 1 |
From the ./python
folder, run
python -m unittest tests/test_unsorted_array.py
From the ./python
folder, run
python -m unittest tests/test_sorted_array.py
| Chapter 4 |
From the ./python
folder, run
python -m unittest tests/test_dynamic_array.py
| Chapter 6 |
Singly-Linked Lists | Python |
From the ./python
folder, run
python -m unittest tests/test_singly_linked_list.py
Sorted Singly-Linked Lists | Python |
From the ./python
folder, run
python -m unittest tests/test_sorted_singly_linked_list.py
Doubly-Linked Lists | Python |
From the ./python
folder, run
python -m unittest tests/test_doubly_linked_list.py
From the ./python
folder, run
python -m unittest tests/test_bag.py
From the ./python
folder, run
python -m unittest tests/test_stack.py
From the ./python
folder, run
python -m unittest tests/test_queue.py
| Chapter 10 | Python |
From the ./python
folder, run
python -m unittest tests/test_heap.py
| Chapter 11 | Python |
From the ./python
folder, run
python -m unittest tests/test_bst.py
| Chapter 12 | Python |
From the ./python
folder, run
python -m unittest tests/test_hash_table.py
| Chapter 13 | Python |
From the ./python
folder, run
python -m unittest tests/test_graph.py