{"id":22049790,"url":"https://github.com/elf-alchemist/leet-code","last_synced_at":"2026-04-10T15:54:10.580Z","repository":{"id":206275804,"uuid":"716170449","full_name":"elf-alchemist/leet-code","owner":"elf-alchemist","description":"My solutions to LeetCode problems.","archived":false,"fork":false,"pushed_at":"2024-02-14T16:38:11.000Z","size":194,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T21:17:07.283Z","etag":null,"topics":["javascript","leetcode","nodejs"],"latest_commit_sha":null,"homepage":"https://leetcode.com/elf-alchemist/","language":"JavaScript","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/elf-alchemist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-11-08T15:27:57.000Z","updated_at":"2024-03-05T14:48:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"15aabcc7-caa0-4d6c-8db5-e9300a3a66a3","html_url":"https://github.com/elf-alchemist/leet-code","commit_stats":null,"previous_names":["elf-alchemist/leet-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf-alchemist%2Fleet-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf-alchemist%2Fleet-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf-alchemist%2Fleet-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf-alchemist%2Fleet-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elf-alchemist","download_url":"https://codeload.github.com/elf-alchemist/leet-code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245119589,"owners_count":20563763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["javascript","leetcode","nodejs"],"created_at":"2024-11-30T14:16:25.577Z","updated_at":"2025-12-30T23:32:13.863Z","avatar_url":"https://github.com/elf-alchemist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An Alchemist becomes a LeetCoder\n```\n\nIn this here repository lay me solutions of many a LeetCode dilemmas.\n\n```\n![LeetCode Stats](https://leetcard.jacoblin.cool/elf-alchemist?theme=dark\u0026font=Fira%20Code)\n\n## Running on your own machine\nMake sure your `node` CLI is up to the date. At least `v20.0.0`, otherwise no other packages are needed.\n\n```sh\n$ node --version\nv20.0.0\n```\n\n## Running a specific problem\nUse the `only` script, and specify the problem number id, if non exists, fails.\n\n```sh\n$ npm run only 217\n```\n\nResult ought to look like this:\n```txt\n\n\u003e leet-code@1.0.0 only\n\u003e _f(){ node --test src/core/$1.js; }; _f 217\n\n▶ LeetCode - 217\n  ✔ Case 1 (0.817237ms)\n  ✔ Case 2 (0.232366ms)\n  ✔ Case 3 (0.186408ms)\n▶ LeetCode - 217 (7.062002ms)\n\nℹ tests 3\nℹ suites 1\nℹ pass 3\nℹ fail 0\nℹ cancelled 0\nℹ skipped 0\nℹ todo 0\nℹ duration_ms 155.120013\n\n```\n\n## Running all problems\nThis is the wildcard, only run if a modicum of patience is present.\n\n```sh\n$ npm run easy\n```\n\nResult might look like:\n```txt\n\n\u003e leet-code@1.0.0 all\n\u003e node --test src/core/*.js\n\n▶ LeetCode - 1\n  ✔ Case 1 (2.768196ms)\n  ✔ Case 2 (0.474915ms)\n  ✔ Case 3 (0.642463ms)\n▶ LeetCode - 1 (10.867524ms)\n\n▶ LeetCode - 1268\n  ✔ Case 1 (2.867021ms)\n  ✔ Case 2 (0.78375ms)\n▶ LeetCode - 1268 (10.511128ms)\n\n▶ LeetCode - 14\n  ✔ Case 1 (1.722545ms)\n  ✔ Case 2 (0.99397ms)\n  ✔ Case 3 (0.595111ms)\n  ✔ Case 4 (0.594552ms)\n▶ LeetCode - 14 (12.853857ms)\n ... ... ...\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felf-alchemist%2Fleet-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felf-alchemist%2Fleet-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felf-alchemist%2Fleet-code/lists"}