Leetcode solutions - All algorithms implemented in Python 3 (for education)

Overview

LeetCodeGuide

Contributors Issues Open Pull Requests Last Commit Stars Forks Watchers License

Table of Contents

All algorithms implemented in Python 3 (for education)

There implementations are for learning purposes. If you want to contribute more efficient solutions feel free to open an issue and commit your solution.

Inspiration

You can look for Algorithms to implement at: LeetCode Algorithms

To contribute make sure the Algorithm isn't commited yet! Make sure to add the number of the Issue in your PR.

Contributing Guidelines

Folders and Files

Please make sure your file is in the LeetCode-Folder and Named like this: 0001_TwoSum.py -> 4-digit Number of the LeetCode Issue, Underscore, LeetCodeName

Opening Issues

When you open an issue, please make sure the Problem is not already implemented (Look at Code/Leetcode for the Problemnumber). Opened Issues by existing Problem will be closed & PR made to this Issue marked as spam The Contributer who opened an issue will be assigned prefered to the issue. If there is no PR within about 7 Days the issue will be assigned to another Contributer.

Pull Requests

Only Pull Requests joined with an Issue and matching the naming-conventions (See Folders and Files) will be merged! If there is no Issue joined in the PR your PR will be labeld as spam and closed. If your code don't passes the Check on LeetCode.com your PR will be labeld as "invalid" and the Issue stays open for the next PR! If your PR doesn' follow the Contributing Guidelines of this Repository it will be also marked as spam and closed!

Spam Users

Users who spam this Repo with PRs/Issues that does not align the Contribution Guidelines will be blocked.

Getting Started

  • Fork this repository (Click the Fork button, top right of this page)
  • Clone your fork down to your local machine
git clone https://github.com/your-username/pythonalgorithms.git
  • Comment to the Issue you want to work on - so I can assign you to it OR create a new Issue from a LeetCode Problem that is not implemented yet
  • Create a branch for a new feature
git checkout -b feature/branch-name
  • Or if its a bugfix to a file
git checkout -b bugfix/branch-name
  • Make your changes (choose from the Tasks above!)
  • Commit and Push
git add .
git commit -m 'commit message'
git push origin branch-name
  • Create a New Pull Request from your forked repository ( Click the 'New Pull Request' Button located at the top of your repo)
  • Wait for your PR review and merge approval!
  • Star this repository if you had fun!

Which PR will be accepted?

  • Ones you are assigned to
  • Your PR has to link the Issue
  • Your Solution must be correct - you can check first on LeetCode (submit) if it works on different test-cases

Which PRs will be NOT accepted?

  • Ones you are NOT assigned to
  • Your PR is NOT linked to the Issue you are linked to
  • Your Solution is not correct
  • Your PR contains more than the .py file
  • PRs that "correct" Typos or spam files with comments
  • PRs that "correct" Coding Styles - Please accept that everybody has a different style

Hacktoberfest

During October there come pretty much PRs and Issues - Please be patient because of my fulltime job I cannot be online 24/7 - I do my best to work through your PRs as soon as possible.

Thank You!

You might also like...
Webtesting for course Data Structures & Algorithms

Selenium job to automate queries to check last posts of Module Data Structures & Algorithms Web-testing for course Data Structures & Algorithms Struct

A collection of data structures and algorithms I'm writing while learning

Data Structures and Algorithms: This is a collection of data structures and algorithms that I write while learning the subject Stack: stack.py A stack

This repo represents all we learned and are learning in Data Structure course.

DataStructure Journey This repo represents all we learned and are learning in Data Structure course which is based on CLRS book and is being taught by

Array is a functional mutable sequence inheriting from Python's built-in list.

funct.Array Array is a functional mutable sequence inheriting from Python's built-in list. Array provides 100+ higher-order methods and more functiona

A DSA repository but everything is in python.

DSA Status Contents A: Mathematics B: Bit Magic C: Recursion D: Arrays E: Searching F: Sorting G: Matrix H: Hashing I: String J: Linked List K: Stack

Common sorting algorithims in Python

This a Github Repository with code for my attempts for commonly used sorting algorithims, tested on a list with 3000 randomly generated numbers.

pyprobables is a pure-python library for probabilistic data structures

pyprobables is a pure-python library for probabilistic data structures. The goal is to provide the developer with a pure-python implementation of common probabilistic data-structures to use in their work.

Python collections that are backended by sqlite3 DB and are compatible with the built-in collections

sqlitecollections Python collections that are backended by sqlite3 DB and are compatible with the built-in collections Installation $ pip install git+

nocasedict - A case-insensitive ordered dictionary for Python

nocasedict - A case-insensitive ordered dictionary for Python Overview Class NocaseDict is a case-insensitive ordered dictionary that preserves the or

Owner
Vineet Dhaimodker
Graduate student at UCR. Working in Data science and machine learning technologies.
Vineet Dhaimodker
Decided to include my solutions for leetcode problems.

LeetCode_Solutions Decided to include my solutions for leetcode problems. LeetCode # 1 TwoSum First leetcode problem and it was kind of a struggle. Th

DandaIT04 0 Jan 1, 2022
Solutions for leetcode problems.

Leetcode-solution This is an repository for storring new algorithms that I am learning form the LeetCode for future use. Implemetations Two Sum (pytho

Shrutika Borkute 1 Jan 9, 2022
This Repository consists of my solutions in Python 3 to various problems in Data Structures and Algorithms

Problems and it's solutions. Problem solving, a great Speed comes with a good Accuracy. The more Accurate you can write code, the more Speed you will

SAMIR PAUL 1.3k Jan 1, 2023
One-Stop Destination for codes of all Data Structures & Algorithms

CodingSimplified_GK This repository is aimed at creating a One stop Destination of codes of all Data structures and Algorithms along with basic explai

Geetika Kaushik 21 Sep 26, 2022
This repo is all about different data structures and algorithms..

Data Structure and Algorithm : Want to learn data strutrues and algorithms ??? Then Stop thinking more and start to learn today. This repo will help y

Priyanka Kothari 7 Jul 10, 2022
This repository is a compilation of important Data Structures and Algorithms based on Python.

Python DSA ?? This repository is a compilation of important Data Structures and Algorithms based on Python. Please make seperate folders for different

Bhavya Verma 27 Oct 29, 2022
Final Project for Practical Python Programming and Algorithms for Data Analysis

Final Project for Practical Python Programming and Algorithms for Data Analysis (PHW2781L, Summer 2020) Redlining, Race-Exclusive Deed Restriction Lan

Aislyn Schalck 1 Jan 27, 2022
Basic sort and search algorithms written in python.

Basic sort and search algorithms written in python. These were all developed as part of my Computer Science course to demonstrate understanding so they aren't 100% efficent

Ben Jones 0 Dec 14, 2022
RLStructures is a library to facilitate the implementation of new reinforcement learning algorithms.

RLStructures is a lightweight Python library that provides simple APIs as well as data structures that make as few assumptions as possibl

Facebook Research 262 Nov 18, 2022
Data Structures and algorithms package implementation

Documentation Simple and Easy Package --This is package for enabling basic linear and non-linear data structures and algos-- Data Structures Array Sta

null 1 Oct 30, 2021