https://github.com/si618/leetcode
Benchmarked LeetCode problems in C# with naïve F# solutions on my functional programming journey
https://github.com/si618/leetcode
leetcode neetcode
Last synced: 2 months ago
JSON representation
Benchmarked LeetCode problems in C# with naïve F# solutions on my functional programming journey
- Host: GitHub
- URL: https://github.com/si618/leetcode
- Owner: si618
- License: apache-2.0
- Created: 2022-04-01T00:07:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-24T15:35:55.000Z (9 months ago)
- Last Synced: 2025-06-24T15:47:55.027Z (9 months ago)
- Topics: leetcode, neetcode
- Language: C#
- Homepage: https://si618.github.io/leetcode/dev/bench
- Size: 1.1 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## LeetCode via NeetCode
[](https://github.com/si618/leetcode/actions/workflows/workflow.yml)
[Benchmarked](https://si618.github.io/leetcode/dev/bench) C# submissions for [LeetCode](https://leetcode.com) problems with naïve F# solutions on my functional programming journey.
After stumbling across the excellent [NeetCode](https://neetcode.io) website I'm now following the author's guidance and supporting his work by becoming a lifetime member. 🙇
### Build and test
``` bash
> dotnet --list-sdks
9.0.301 [/usr/share/dotnet/sdk]
> git --version
git version 2.47.0
> git clone https://github.com/si618/leetcode.git
Cloning into 'leetcode'...
> cd leetcode
> dotnet build
> dotnet test --no-restore
```
### Console application
An interactive console application can run benchmarks and show problem information.
``` bash
> cd ./LeetCode
> dotnet run
USAGE:
LeetCode.exe [OPTIONS]
EXAMPLES:
LeetCode.exe benchmark LRUCache --csharp
LeetCode.exe info MergeTwoLists
OPTIONS:
-h, --help Prints help information
-v, --version Prints version information
COMMANDS:
app Run interactive console application
benchmark Run benchmarks against leetcode problems
info Show information about a problem
list List information about problems
workflow Run benchmarks for GitHub workflow
> dotnet run app
__ __ ______ __
/ / ___ ___ / /_ / ____/____ ____/ /___
/ / / _ \ / _ \ / __// / / __ \ / __ // _ \
/ /___/ __// __// /_ / /___ / /_/ // /_/ // __/
/_____/\___/ \___/ \__/ \____/ \____/ \__,_/ \___/
> List Problems
Run Benchmarks
About
Exit
```
### Run application from [podman](https://podman.io/) or [docker](https://docker.com/)
``` bash
# Build docker or podman image
> podman compose up
# Run interactive console application
> podman run --rm -it leetcode app
# List information about problems
> podman run --rm -it leetcode list
# Show information about a problem
> podman run --rm -it leetcode info 'climbing stairs'
# Run all F# benchmarks
> podman run --rm -it leetcode benchmark --fsharp
# Run single C# benchmark
> podman run --rm -it leetcode benchmark LRUCache --csharp
```