Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spezifisch/leetcode-problems
My solutions to some leetcode.com coding problems, mostly Python/Go
https://github.com/spezifisch/leetcode-problems
algorithm algorithms golang leetcode leetcode-solutions python
Last synced: 10 days ago
JSON representation
My solutions to some leetcode.com coding problems, mostly Python/Go
- Host: GitHub
- URL: https://github.com/spezifisch/leetcode-problems
- Owner: spezifisch
- Created: 2019-03-09T23:18:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T17:35:42.000Z (over 2 years ago)
- Last Synced: 2023-03-06T12:17:02.587Z (over 1 year ago)
- Topics: algorithm, algorithms, golang, leetcode, leetcode-solutions, python
- Language: Python
- Homepage:
- Size: 428 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# leetcode-problems
My solutions to some leetcode.com coding problems, mostly Python/Go.
## Repository Structure
The directory `name` corresponds to the problem reachable under `https://leetcode.com/problems//`.
For example to see the description of `jewels-and-stones` go to https://leetcode.com/problems/jewels-and-stones/My submitted revisions are called `one.py`, `two.py`, etc. (`v1.py`/`go` for newer ones).
Most of the solutions contain the result as a comment on the bottom of the file, for example:
```python
# Runtime: 96 ms, faster than 98.07% of Python3 online submissions for Array Partition I.
# Memory Usage: 15.2 MB, less than 5.20% of Python3 online submissions for Array Partition I.
```Note that runtime and memory usage given by Leetcode isn't very consistent between runs of the same code.
Sometimes runs a few months later also take longer due to newly added test cases or version upgrades.## Formatting
```shell
# install git hook
pip install pre-commit
pre-commit install# run manually
pre-commit run --all-files
```This autoformats the following code files: Python, C++, Golang.