{"id":17979077,"url":"https://github.com/sidvishnoi/leetcode-rust","last_synced_at":"2025-04-04T00:40:55.464Z","repository":{"id":119738252,"uuid":"282288080","full_name":"sidvishnoi/leetcode-rust","owner":"sidvishnoi","description":"LeetCode Solutions in Rust","archived":false,"fork":false,"pushed_at":"2020-11-27T13:19:23.000Z","size":279,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-09T12:29:40.690Z","etag":null,"topics":["leetcode-rust","leetcode-solutions"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidvishnoi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-07-24T18:16:26.000Z","updated_at":"2022-05-13T23:35:20.000Z","dependencies_parsed_at":"2023-07-18T01:16:02.834Z","dependency_job_id":null,"html_url":"https://github.com/sidvishnoi/leetcode-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidvishnoi%2Fleetcode-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidvishnoi%2Fleetcode-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidvishnoi%2Fleetcode-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidvishnoi%2Fleetcode-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidvishnoi","download_url":"https://codeload.github.com/sidvishnoi/leetcode-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247103301,"owners_count":20884023,"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":["leetcode-rust","leetcode-solutions"],"created_at":"2024-10-29T17:36:08.117Z","updated_at":"2025-04-04T00:40:55.444Z","avatar_url":"https://github.com/sidvishnoi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode Solutions in Rust\n\n**Why would I solve LeetCode problems in Rust?!** I wanted to learn Rust, without committing myself to some large real-world project. LeetCode monthly challenges are good for consistently practicing.\n\n**Why would someone not use Rust for LeetCode problems?** Mainly because of the learning curve. It's a little difficult to successfully run a Rust program in one go unlike other common languages. You don't want to fight the borrow checker in a contest. Also, C++/Java/Python/JavaScript are more expressive to quickly solve these problems.\n\n## Running\n\nMost of the solutions here are self contained programs. I did not use cargo because I wanted to keep it real simple.\n\nYou can copy paste a code and run it online in [Rust Playground](https://play.rust-lang.org/).\n\nTo run locally:\n\n```bash\nrustc 1234-some-file.rs -g -o run\n./run\n```\n\n### With VS Code\n\nRun the default build task to compile and run:\n\n1. \u003ckbd\u003eCtrl+Shift+p\u003c/kbd\u003e\n2. Select: \"Tasks: Run build task\".\n\nPro tip: Assign a keyboard shortcut to the default build task. I use \u003ckbd\u003eCtrl+Shift+B\u003c/kbd\u003e.\nSet the backtrace level in tasks.json, if needed.\n\nThere is also a \"test\" task for formatting the code with `rustfmt`. I've assigned it to \u003ckbd\u003eCtrl+Shift+V\u003c/kbd\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidvishnoi%2Fleetcode-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidvishnoi%2Fleetcode-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidvishnoi%2Fleetcode-rust/lists"}