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

https://github.com/paulcadman/lean4-leetcode


https://github.com/paulcadman/lean4-leetcode

lean4 leetcode

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# Leetcode exercises in Lean4

## Run all the exercises

```
lake exe leetcode
```

## Run a single exercise

```
lake exe
```

where `name` is given in the following table:

| Exercise | Implementation | Test name | Bench name |
| -------- | -------------- | --------- | ---------- |
| [twoSum](https://leetcode.com/problems/two-sum/) | [TwoSum.lean](./Leetcode/TwoSum.lean) | `twosum-test` | `twosum-bench` |
| [reverse](https://leetcode.com/problems/reverse-integer/) | [Reverse.lean](./Leetcode/Reverse.lean) | `reverse-test` | |

## Credits

This code was written with [@awalterschulze](https://github.com/awalterschulze) on his [twitch channel](https://www.twitch.tv/videos/1907381658).
The recording of us tackling the initial problems can be found on [youtube](https://www.youtube.com/watch?v=uLvOPhZQ5f4).