Skip to content

daltonamitchell/python-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Algorithms

==========

A collection of common algorithms for practice or review

Getting Started

The best way to use these examples is to read through the tests to understand what's expected of each solution. Then read through the solution until you understand it. Better yet, comment out or remove the solution and try to get the tests passing yourself.

Follow these steps to get started:

  1. Clone this repo
  2. Run pip install -r requirements.txt to install the dependencies. If you need to install pip, look here.
  3. Type mamba to run the tests. You can type pylint lib to check for style/syntax issues.
  4. All tests are in the spec/ directory and solutions are located in lib/.
  5. Once you understand whats going on, remove the solution code and try to get it working again on your own.
  6. Go forth and conquer!

Other Languages

I've written these in a few different languages to fully understand how to different languages handle logic problems. Check out the others!

Purpose

Being a self-taught developer, I built these problems for myself to learn and practice. I've posted them so others can benefit from the same practice. Also, if I've gotten anything wrong, I'm sure someone will let me know and then I'll get to learn again!

You can use these to prepare for interviews, bootcamp prep or just for fun.

Just remember:

  1. Read through the example.
  2. Understand what each line of code is doing.
  3. Try it yourself and get the tests passing.
  4. Repeat!

Learn More

Here are some other resources useful for learning this kind of stuff.

Curriculum

Practice Challenges

Contribute

If you have trouble running the tests, want to add a new problem or correct something that's not quite right, please open an issue or submit a pull request.

About

A collection of common algorithms in Python for practice or review

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages