{"id":38212216,"url":"https://github.com/si618/leetcode","last_synced_at":"2026-01-17T00:44:12.475Z","repository":{"id":49306551,"uuid":"476517041","full_name":"si618/leetcode","owner":"si618","description":"Benchmarked LeetCode problems in C# with naïve F# solutions on my functional programming journey","archived":false,"fork":false,"pushed_at":"2025-06-24T15:35:55.000Z","size":1149,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T15:47:55.027Z","etag":null,"topics":["leetcode","neetcode"],"latest_commit_sha":null,"homepage":"https://si618.github.io/leetcode/dev/bench","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/si618.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-01T00:07:27.000Z","updated_at":"2025-06-24T15:35:58.000Z","dependencies_parsed_at":"2023-02-18T14:31:40.000Z","dependency_job_id":"1de5e591-d65a-4a66-b67e-7c55e4463c72","html_url":"https://github.com/si618/leetcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/si618/leetcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si618%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si618%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si618%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si618%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/si618","download_url":"https://codeload.github.com/si618/leetcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si618%2Fleetcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T23:55:29.509Z","status":"ssl_error","status_checked_at":"2026-01-16T23:55:29.108Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leetcode","neetcode"],"created_at":"2026-01-17T00:44:12.387Z","updated_at":"2026-01-17T00:44:12.458Z","avatar_url":"https://github.com/si618.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## LeetCode via NeetCode\r\n[![Build and Benchmark](https://github.com/si618/leetcode/actions/workflows/workflow.yml/badge.svg)](https://github.com/si618/leetcode/actions/workflows/workflow.yml)\r\n\r\n[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.\r\n\r\nAfter 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. 🙇‍\r\n\r\n### Build and test\r\n\r\n``` bash\r\n\u003e dotnet --list-sdks\r\n9.0.301 [/usr/share/dotnet/sdk]\r\n\r\n\u003e git --version\r\ngit version 2.47.0\r\n\r\n\u003e git clone https://github.com/si618/leetcode.git\r\nCloning into 'leetcode'...\r\n\r\n\u003e cd leetcode\r\n\u003e dotnet build\r\n\u003e dotnet test --no-restore\r\n```\r\n\r\n### Console application\r\n\r\nAn interactive console application can run benchmarks and show problem information.\r\n\r\n``` bash\r\n\u003e cd ./LeetCode\r\n\u003e dotnet run\r\nUSAGE:\r\n    LeetCode.exe [OPTIONS] \u003cCOMMAND\u003e\r\n\r\nEXAMPLES:\r\n    LeetCode.exe benchmark LRUCache --csharp\r\n    LeetCode.exe info MergeTwoLists\r\n\r\nOPTIONS:\r\n    -h, --help       Prints help information\r\n    -v, --version    Prints version information\r\n\r\nCOMMANDS:\r\n    app          Run interactive console application\r\n    benchmark    Run benchmarks against leetcode problems\r\n    info         Show information about a problem\r\n    list         List information about problems\r\n    workflow     Run benchmarks for GitHub workflow\r\n\r\n\u003e dotnet run app\r\n    __                __   ______            __\r\n   / /   ___   ___   / /_ / ____/____   ____/ /___\r\n  / /   / _ \\ / _ \\ / __// /    / __ \\ / __  // _ \\\r\n / /___/  __//  __// /_ / /___ / /_/ // /_/ //  __/\r\n/_____/\\___/ \\___/ \\__/ \\____/ \\____/ \\__,_/ \\___/\r\n\r\n\u003e List Problems\r\n  Run Benchmarks\r\n  About\r\n  Exit\r\n```\r\n\r\n### Run application from [podman](https://podman.io/) or [docker](https://docker.com/)\r\n\r\n``` bash\r\n# Build docker or podman image\r\n\u003e podman compose up\r\n\r\n# Run interactive console application\r\n\u003e podman run --rm -it leetcode app\r\n\r\n# List information about problems\r\n\u003e podman run --rm -it leetcode list\r\n\r\n# Show information about a problem\r\n\u003e podman run --rm -it leetcode info 'climbing stairs'\r\n\r\n# Run all F# benchmarks\r\n\u003e podman run --rm -it leetcode benchmark --fsharp\r\n\r\n# Run single C# benchmark\r\n\u003e podman run --rm -it leetcode benchmark LRUCache --csharp\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi618%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsi618%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi618%2Fleetcode/lists"}