[Go to site: main page, start]

Python competitive-programming

Open-source Python projects categorized as competitive-programming

Top 23 Python competitive-programming Projects

competitive-programming
  1. interactive-coding-challenges

    120+ interactive Python coding interview challenges (algorithms and data structures). Includes Anki flashcards.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. algorithms

    Minimal examples of data structures and algorithms in Python

    Project mention: Show HN: Algorithms 1.0.0 – Minimal and clean implementations of algorithms | news.ycombinator.com | 2026-02-17
  4. DSAlgo

    📚A repository that contains all the Data Structures and Algorithms concepts and solutions to various problems in Python3 stored in a structured manner.👨‍💻🎯

  5. PyRival

    ⚡ Competitive Programming Library

  6. cms

    Contest Management System (by cms-dev)

  7. judge-server

    Judging backend server for the DMOJ online judge.

  8. python-cp-cheatsheet

    Python3 interview prep cheatsheet and examples

  9. Data-Structures-and-Algorithms-Python

    All the essential resources and template code needed to understand and practice data structures and algorithms in python with few small projects to demonstrate their practical application.

  10. aoc

    🎄 My solutions and walkthroughs for Advent of Code and more related stuff.

  11. cf-stats

    A github action based realtime Codeforces activity statistics card and badge generator for github readme

  12. starter-snake-python

    Get started with Battlesnake and Python

  13. api-client

    API client to develop tools for competitive programming (by online-judge-tools)

  14. test-case-generator

    Test Case generator for competitive coding. Test case generator for competitive programming and potentially for software testing.

  15. cp-tool

    cp-tool is an auto generator for solved problems at different online judges.

  16. Python-Competitive-Programming

    :computer: [Competitive Programming] This Repo consists of my solutions in Python 3 to various problems of [HackerRank, Leetcode, Codeforces, Code Chef etc.]

  17. Competitive-Python

    Python Algorithms Package used in competitive programming

  18. AlgorithmProblems

    Solutions to Algorithm Problems :chart_with_upwards_trend: :neckbeard:

  19. maxheap

    heapq library tweaked to a maxheap

  20. 2048-er

    A remake of the 2048-game but with a competitive programming twist.

  21. ctfs

    infosec ctfs, coding puzzles and other contests (by Alekseyyy)

  22. Competitive-Programming

  23. Vector

    Pure-Python TSP heuristic utilizes Cooks Ruler Sweep Algorithm that boosts the optimization of your current design software or warehouse robot manager. No training. No compilation. No cloud. No subscription (by g4mbit5)

    Project mention: Cook's Ruler Sweep: 10k-city TSP in 17 minutes (pure Python) | news.ycombinator.com | 2025-11-19

    A 150-line pure-Python TSP heuristic that beats Nearest Neighbor by +10–13.8% on real-world geographic data — including 10,000 US cities in under 17 minutes.

    No training, no compilation, no external solvers. Just geometry and a 1.3× tolerance band.

    I built it in a 72-hour rage after hitting a wall trying to optimize an app I'm building for my cybersecurity startup.

    https://github.com/g4mbit5/Cooks-Ruler-Sweep

  24. Basic-Algorithms

    Basic algorithms and data structures written in different programming languages

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python competitive-programming discussion

Log in or Post with

Python competitive-programming related posts

  • Show HN: Algorithms 1.0.0 – Minimal and clean implementations of algorithms

    1 project | news.ycombinator.com | 17 Feb 2026
  • Battlesnake Challenge

    2 projects | dev.to | 15 May 2024
  • Ask HN: How can I run untrusted Python code?

    2 projects | news.ycombinator.com | 10 Jan 2024
  • Última clase de programación

    1 project | /r/programacion | 30 May 2023
  • Battlesnake – Multiplayer Coding Game

    1 project | news.ycombinator.com | 16 Apr 2023
  • Games For Java Coding

    1 project | /r/java | 3 Mar 2023
  • Develop your Battlesnake using a MuleSoft API & DataWeave with this starter project

    2 projects | dev.to | 13 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 18 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source competitive-programming projects in Python? This list will help you:

# Project Stars
1 interactive-coding-challenges 31,401
2 algorithms 25,478
3 DSAlgo 2,522
4 PyRival 1,278
5 cms 1,024
6 judge-server 971
7 python-cp-cheatsheet 841
8 Data-Structures-and-Algorithms-Python 722
9 aoc 420
10 cf-stats 255
11 starter-snake-python 119
12 api-client 80
13 test-case-generator 53
14 cp-tool 39
15 Python-Competitive-Programming 28
16 Competitive-Python 17
17 AlgorithmProblems 11
18 maxheap 4
19 2048-er 4
20 ctfs 2
21 Competitive-Programming 2
22 Vector 1
23 Basic-Algorithms 0

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com