https://github.com/itsfarseen/data-structures-and-algorithms-practice
https://github.com/itsfarseen/data-structures-and-algorithms-practice
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsfarseen/data-structures-and-algorithms-practice
- Owner: itsfarseen
- Created: 2019-03-06T06:31:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T06:32:17.000Z (over 7 years ago)
- Last Synced: 2025-03-08T21:11:22.846Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Data Structure and Algorithms Excercises (Python)
# How to use:
1. Open any file.
2. Remove the contents of all classes, except XxxTest class, which contains the testcases.
3. Implement the functions needed by the Data Structure/Algorithm.
4. Run `python filename.py` to run the testcases.
If you are using VSCode, install `Python Test Explorer` extension, to get a nice sidebar
containing all the tests in all the files.
https://marketplace.visualstudio.com/items?itemName=LittleFoxTeam.vscode-python-test-adapter
# Why Python, why not C/C++ ?
Python lets me ignore the issues like memory management and segfaults,
while focusing on understanding how the data structure or algorithm works.
Python also has a very nice test framework builtin.
It also gives me a traceback to the line causing the error, if an error occurs.