An open API service indexing awesome lists of open source software.

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.

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:

Screenshot 2023-04-10 at 19 00 53