Python solutions for NeetCode problems, grouped by topic.
01_arrays_and_hashing/02_two_pointers/03_sliding_window/04_stack/05_binary_search/06_linked_list/07_trees/08_tries/09_heap_priority_queue/10_backtracking/11_graphs/12_advanced_graphs/13_1d_dp/14_2d_dp/15_greedy/16_intervals/17_math_geometry/18_bit_manipulation/
Each solution file includes its own unittest suite at the bottom.
Run a single problem:
python 01_arrays_and_hashing/001_contains_duplicate.pyRun all tests:
python -m unittest discover -s . -p "*.py"