vcalderon2009 / coding_exercises

Repository for practicing coding exercises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coding Exercises

This repository is designed for practicing coding problems during coding interviews.

Instructions for local development

The repository comes with a Makefile that contains a set of functions used for coding practices.

The Makefile comes with the following set of functions:

(base) ➜  job_coding_exercises git:(main ✗ make help
Available rules:

clean                     Removes artifacts from the build stage, and other common Python artifacts.
clean-build               Remove build artifacts
clean-pyc                 Removes Python file artifacts
clean-test                Remove test and coverage artifacts
create-environment        Creates the Python environment
create-envrc              Set up the envrc file for the project.
delete-environment        Deletes the Python environment
delete-envrc              Delete the local envrc file of the project
destroy                   Remove ALL of the artifacts + Python environments
init                      Initialize the repository for code development
lint                      Run the 'pre-commit' linting step manually
new-problem               Function to create a file for a new coding problem
pip-upgrade               Upgrade the version of the 'pip' package
pre-commit-install        Installing the pre-commit Git hook
pre-commit-uninstall      Uninstall the pre-commit Git hook
requirements              Install Python dependencies into the Python environment
show-params               Show the set of input parameters
sort-requirements         Sort the project packages requirements file

Each of these functions can be accessed through the make command at the base directory level.

Create new solution

In order to create a file for the solution of a speciified coding exercise, one can run the following command:

make new-problem COMPANY_NAME="company" PROBLE_TYPE="type-of-problem" YEAR="2023" TITLE="name-of-problem"

, where:

  • COMPANY_NAME corresponds to the name of the company, to which one is applying;
  • PROBLE_TYPE corresponds to the type of coding problem ;
  • YEAR corresponds to the year of submission / application;
  • TITLE corresponds to the name of the script.

This command will copy the sample script into the corresponding folder and have it named accordingly.

About

Repository for practicing coding exercises

License:MIT License


Languages

Language:Makefile 51.6%Language:Python 48.4%Language:Shell 0.1%