{"id":16430149,"url":"https://github.com/ruislan/leetcode","last_synced_at":"2025-04-25T00:32:54.339Z","repository":{"id":171258248,"uuid":"272599366","full_name":"ruislan/leetcode","owner":"ruislan","description":"leetcode in rust!","archived":false,"fork":false,"pushed_at":"2022-01-24T04:15:43.000Z","size":2530,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T14:13:38.974Z","etag":null,"topics":["leetcode","rust","rust-leetcode"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"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/ruislan.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-06-16T03:20:10.000Z","updated_at":"2024-01-16T02:11:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"83b01f09-6a13-4e78-a2b4-e0601b67d1e2","html_url":"https://github.com/ruislan/leetcode","commit_stats":null,"previous_names":["ruislan/leetcode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruislan%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruislan%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruislan%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruislan%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruislan","download_url":"https://codeload.github.com/ruislan/leetcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250733573,"owners_count":21478395,"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","rust-leetcode"],"created_at":"2024-10-11T08:25:51.033Z","updated_at":"2025-04-25T00:32:54.321Z","avatar_url":"https://github.com/ruislan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 用Rust刷LeetCode\n\n## 简介\n\n主要是为了学习和熟悉Rust而刷题。\n\n基本一天一道题，刷到几十道题的时候也是因为在不同的电脑上刷，方便倒腾于是就弄了github，设置的是Private。 今天刷到327道题了，回头看一下，快刷了一年了，心血来潮就Public了。\n\n之前有一段时间都是直接在Leetcode编辑器里面做，后来拷贝到IDEA里面，所以这些题没有写解题思路，后面有时间二刷再补吧。\n\n## 关于Rust\n\n除了一声Rust牛逼以外，没有其他的语言了。\n\n## 路线\n\n先横向刷“简单”题，再纵向刷“专题”的“中等 - 困难”，然后是“模拟比赛”，最后是“参加比赛”。\n\n首先刷简单题，它的好处就是：\n\n* 如果你是新手：简单题可以帮助你快速巩固基础知识，同时也能给你做题的信心，以及熟悉这个世界该怎么玩。\n* 如果你是常年没写代码的，简单题可以顺便回忆那种写代码和那些快要丢了的数据结构和算法的感觉，以及树立你的信心，“我还能打”的感觉。\n\n这个阶段看自我感觉，觉得OK就100-200道就可以了，有强迫症的就刷到刷无可刷为止吧。\n\n接着刷“专题”，它的好处就是：\n\n* 专题可以全面加深我们解决这类专题的能力\n* 同时巩固我们的知识\n* 以及开拓视野\n\n专题阶段，就是一个专题吃透了，中等难度的题刷到和做简单题没啥区别的时候，就差不多了，这个时候困难题也变成了中等题了。 这个阶段是我们快速提高的阶段，所以尽量的去搞定每个专题，见识各种刁钻角度的出题。我正好在这个阶段。\n\n然后是“模拟比赛”，“模拟比赛”有4个题，1个简单，2个中等，1个困难，它的好处就是：\n\n* 竞赛是在有限的时间里面解决未知问题的，所以它能够提升你的综合能力，应证你的知识面全不全，够不够专注\n* 同时让你适应竞赛的一种感觉\n\n这个阶段，我自己的目标是能够完成至少3道题的，同时还有30分钟以上的时间去做hard，就可以了。\n\n最后是“参加比赛”，这就是和别人同台竞技了，总之就是不停的比赛，直到自己能够和大神一样，在15-30分钟内完成所有的4道题。 想想那些大神看到困难题也是秒出思路，并很快解决的时候，这就是对我们的鞭策啊。\n\n当然“参加比赛”也不一定非要到“模拟比赛”之后，你可以随时参加。这只不过是我自己的规划。\n\n当你次次比赛都能完成4道题的时候，你需要更高级的平台了，atcoder.jp或者codeforces.com都是很好的选择。\n\n## 文件结构\n\n* q就是普通题\n* lcp,offer和interview这三个在leetcode题库中有对应的前缀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruislan%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruislan%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruislan%2Fleetcode/lists"}