Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubgus/python-algorithms
A collection of algorithms in Python.
https://github.com/kubgus/python-algorithms
algorithms foobar leetcode leetcode-python leetcode-solutions python python3
Last synced: about 11 hours ago
JSON representation
A collection of algorithms in Python.
- Host: GitHub
- URL: https://github.com/kubgus/python-algorithms
- Owner: kubgus
- Created: 2022-07-02T00:28:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T17:43:47.000Z (over 2 years ago)
- Last Synced: 2025-01-21T21:17:28.331Z (about 11 hours ago)
- Topics: algorithms, foobar, leetcode, leetcode-python, leetcode-solutions, python, python3
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pygorithms
A little repository I'm going to be working on for the next couple of weeks. (probably)
It's basically a collection of algorithms in Python.## It's my code
The algorithms are done by me, so they aren't going to be super efficient.
Feel free to use them, though...## Goals
Progress: 10
- [x] 1 algorithm
- [x] 10 algorithms
- [ ] 20 algorithms
- [ ] 30 algorithms## Example
```py
def removeDuplicates(nums) -> int:
curr = -101
index = 0
for num in nums:
prev = curr
curr = num
if curr != prev:
nums[index] = curr
index += 1
return index
```