https://github.com/marianogappa/leetlink
CLI tool that gets the Leetcode link for a given problem number.
https://github.com/marianogappa/leetlink
chatgpt cli golang leetcode
Last synced: 7 months ago
JSON representation
CLI tool that gets the Leetcode link for a given problem number.
- Host: GitHub
- URL: https://github.com/marianogappa/leetlink
- Owner: marianogappa
- Created: 2023-04-10T09:55:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-11T01:46:22.000Z (over 2 years ago)
- Last Synced: 2025-01-17T08:30:01.602Z (9 months ago)
- Topics: chatgpt, cli, golang, leetcode
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# leetlink
## Usage
```bash
$ leetlink 207
https://leetcode.com/problems/course-schedule/
```Pipe it to `open` to open it on your browser:
```bash
$ leetlink 207 | xargs open
[... opens on default browser ...]
```## Installation
```
go install github.com/marianogappa/leetlink@latest
```## It doesn't work for e.g. 175!
This tool uses Leetcode's stats API endpoint, and it seems 13% of the problems are missing. Looks like many of those are SQL & Bash problems, although there are others missing.
## Disclaimer
It looks like I did this, but actually it was mostly ChatGPT 4 via Bing Chat:
![]()