Metadata-Version: 2.5
Name: lc-crusher
Version: 0.1.2
Summary: lc (LeetCode Crusher): pick an unsolved problem, borrow a community Python solution, verify it, submit it.
Classifier: Environment :: Console
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: curl-cffi>=0.7
Requires-Dist: openpyxl>=3.1
Requires-Dist: playwright>=1.45
Requires-Dist: rich>=13.7
Requires-Dist: typer>=0.12
Description-Content-Type: text/markdown

# lc — LeetCode Crusher

A CLI that picks unsolved LeetCode problems, finds a top-voted community Python
solution, verifies it against the examples with Run, and submits it.

## Install

```bash
pipx install lc-crusher
```

Requires Python 3.10+ and Google Chrome (used only for signing in).

## Usage

```bash
lc login                         # sign in in a Chrome window; session saved to ~/.config/lc
lc whoami                        # signed-in user and solved counts
lc pick -n 10                    # next unsolved problems
lc crush --dry-run               # verify the next problem without submitting
lc crush -n 5 -d easy            # solve 5 unsolved easy problems
lc now                           # run the scheduled job immediately (50 problems)
lc schedule install daily:23:00 -n 50 --delay 10  # daily at 23:00, 50 problems, 10s apart
lc schedule status | remove
```

Every accepted problem is appended to `~/lc-solved.xlsx`, one tab per
date. Problems a previous run solved or gave up on are never retried unless you
pass `--retry-failed`.

LeetCode allows one Run/Submit at a time per account, so problems are solved
sequentially.

## Disclaimer

Automated submissions violate LeetCode's Terms of Service and can get an account
flagged or banned. Use at your own risk.
