Hey there! Welcome to my assessment project where I've tackled some interesting coding challenges. I've not only provided solutions but also added some testing to make sure everything works as expected. Feel free to dig in, check out the answers, and see how I've ensured code quality!
Click here for my answers in a text file
These instructions will help you set up and run the project on your local machine.
Before you begin, ensure you have met the following requirements:
- Python (3.7 or higher) installed on your system.
- A code editor or IDE of your choice.
-
Clone the repository to your local machine:
git clone https://github.com/asaki222/hmassessment.git
-
Navigate to the project directory:
cd hmassessment
-
Create a virtual environment and active a virtual enviroment(optional):
python -m venv venv source venv/bin/activate
-
To run the tests, and play with the code:
For test:
cd tests/databases sqlite3 mytestdatabase.sqlite < setup_test_database_sqlite.sql
For prod:
cd questions/databases sqlite3 mydatabase.sqlite < setup_database_sqlite.sql
python3 -m unittest tests.test_sql_questions python3 -m unittest tests.test_python_questions
python3
and import the methods you would like to test(example):
from questions.python_questions import create_job_status_dict, find_local_maxima data = [3, 6, 1, 2, 5, 4, 10, 5, 7, 2, 4] find_local_maxima(data)