https://github.com/mromanelli9/python-programming-challenges
A collection of Python programming challenges.
https://github.com/mromanelli9/python-programming-challenges
interview-practice programming-challenges python3
Last synced: 2 months ago
JSON representation
A collection of Python programming challenges.
- Host: GitHub
- URL: https://github.com/mromanelli9/python-programming-challenges
- Owner: mromanelli9
- License: mit
- Created: 2019-09-22T13:09:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T09:09:14.000Z (over 6 years ago)
- Last Synced: 2025-10-11T21:33:03.083Z (6 months ago)
- Topics: interview-practice, programming-challenges, python3
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python programming challenges
This is a collection of programming challenges, written in Python,
that I've encountered mainly during my job interviews.
# Preparation
1. Make sure that you have python 3.7.x installed. Some functionality (like type-hints
and f-strings) from later versions of python are used, so you should make sure that
you have the correct version.
2. Run `conda env create -f environment.yml` to make sure that you have installed the
necessary dependencies.
# How to use
For each task you'll find the description at the beginning of the file,
but there are also other useful information on the task function docstring.
The tasks are marked with a difficulty ranging from 0-5, where 0 should be very easy, while 5
can be quite difficult.
Some tests will also have timeouts.
To run tests, simply run `pytest tests` from the project root.
The tasks that are not implemented are skipped so they'll not invalidate the other tests.
The _solutions_ folder contains my solutions for some of the tasks.
They're not intended to be the best solutions at all.
If you want to propose a solution, it'll be more than welcome.
# Tasks
Here is a list of the tasks:
| | Name | Difficulty | Solution |
|---|-------------------|------------|----------|
| 1 | _exact_ _hours_ | 3 | |
| 2 | _lisp_ | 2 | [x] |
| 3 | _matmul_ | 4 | |
| 4 | _pipes_ | 4 | |
| 5 | _training_ | 5 | |
| 6 | _wifi_ _password_ | 1 | [x] |
| 7 | _signal_ _crossing_ | 3 | [x] |
| 8 | _marketing_ | 1 | [x] |
# License
[](https://opensource.org/licenses/MIT)