Skip to content

Latest commit

 

History

228 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Problem Solving

Solution Image

License Contributions Welcome Good First Issues

LeetCode Codewars HackerRank CheckiO GeeksforGeeks

A collection of algorithm solutions. Mostly Python, with every language welcome.

Open for everyone: beginners, experienced developers, students, and people who don't code.

About

This started as my personal collection of Python solutions to problems from LeetCode, Codewars, HackerRank, CheckiO, and GeeksforGeeks.

I'm growing it into a place where the same problem is solved in many languages, so learners can compare styles side by side. Most solutions are in Python for now, and I'd love your help adding more languages.

Structure

Solutions are organized by language. Each file is named practice<n> in the order it was solved within that language's folder.

algo-solutions-python/
├── solutions/
│   ├── python/
│   │   ├── practice1.py
│   │   ├── practice2.py
│   │   └── ...
│   └── <your language>/        # any language is welcome
│       └── practice1.js
├── assets/
├── README.md
└── LICENSE

Each file includes the problem source and a short note at the top as a comment:

# Problem: Two Sum
# Source: https://leetcode.com/problems/two-sum
# Note: Used a dictionary for O(n) lookup

How to contribute

This repo is open for everyone. Any language, any level, no experience required. You can contribute without writing code at all.

New to open source? Start here before anything else:

First Contributions - github.com/firstcontributions/first-contributions

Prefer video? Watch this: How to contribute on GitHub (YouTube)

Quick steps

  1. Pick an open issue and comment on it to claim it
  2. Fork this repo
  3. Clone your fork and create a new branch
  4. Make your change
  5. Commit, push, and open a Pull Request

Ways to help

I want to... Look for the label
Make my first contribution good first issue
Help without writing code no-code-needed
Add a solution in any language any-language
Improve docs or explanations documentation
Help with design design
Translate the README translation
Spend only 5 minutes 5-minutes
Be mentored through my first PR first-timers-only

Adding a solution

  • Add your file as solutions/<language>/practice<next number>.<ext>, for example solutions/python/practice42.py or solutions/javascript/practice1.js
  • Use a lowercase language folder name (python, javascript, typescript, java, cpp, c, csharp, go, rust, kotlin, swift, php, ruby)
  • The next number is the highest practice<n> in that folder plus 1
  • Add a header comment with the problem name, link, and a one-line note
  • Messy but working code is welcome, and I'll help polish it in review

Don't see a folder for your language? Create it. You'll be the first contributor for it, and I'll credit you here.

Contributors

Thanks to everyone who helps this collection grow.

Contributors

Platforms

License

Distributed under the MIT License. See LICENSE for details.


© 2026 Huerte