This repo contains a collection of common Algorithms and Data Structures questions. The questions mentioned below, or a variation of the questions are common for coding interviews. All the solutions have test cases which checks their validity. The time and space complexity for each solution is also mentioned.
- Install poetry. (https://python-poetry.org/)
- Black. (Recommended, not a requirement - https://github.com/psf/black)
To run all the tests, run the below command from the shell.
poetry run pytest test
- Min and Max element. Test cases
- Check if the brackets and balanced. Test cases
- Two Sums. Test cases
- Contains Duplicate. Test cases