Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

ardenn/codility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a collection of my attempts at solving problems from the codility website.

Installation

$ git clone git@github.com:ardenn/codility.git
$ cd codility
$ pip install -r requirements.txt

Requirements

  • Python 3
  • pytest

Structure

The questions are found under the questions subdirectory, inside text files. These text files have a structure of lesson{lesson_number}_{lesson_name}. The question files contain a complete description of the problem, examples of expected outcomes, instructions as well as constraints within which to work by.

Solutions can be found under the solutions/ directory presented as individual modules that define a solution function, for each of the questions. For clarity, the file names for the solutions are similar to their question file names.

I have written unit tests under the tests/ directory, with a single module for each of the questions. Again for clarity, test file names are just the problem/solution file names prefixed with "test_" to allow pytest to discover tests.

Contributing

Pull requests are welcome. Please feel free to correct me on where I might have gone wrong or even insight in to how some things could have been improved. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Personal solutions for codility exercises

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages