{"id":13459343,"url":"https://github.com/greyireland/algorithm-pattern","last_synced_at":"2025-05-13T19:07:09.839Z","repository":{"id":37375820,"uuid":"272035489","full_name":"greyireland/algorithm-pattern","owner":"greyireland","description":"算法模板，最科学的刷题方式，最快速的刷题路径，你值得拥有~","archived":false,"fork":false,"pushed_at":"2024-02-22T09:32:48.000Z","size":4197,"stargazers_count":15379,"open_issues_count":28,"forks_count":2598,"subscribers_count":352,"default_branch":"master","last_synced_at":"2025-04-27T05:37:12.569Z","etag":null,"topics":["algo","algorithm","leetcode","leetcode-go","pattern"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greyireland.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}},"created_at":"2020-06-13T15:29:21.000Z","updated_at":"2025-04-26T07:00:39.000Z","dependencies_parsed_at":"2023-02-12T07:45:13.279Z","dependency_job_id":"110582cd-d648-48a5-8bfc-fdbc48666e6e","html_url":"https://github.com/greyireland/algorithm-pattern","commit_stats":{"total_commits":40,"total_committers":11,"mean_commits":"3.6363636363636362","dds":"0.44999999999999996","last_synced_commit":"5077f532a3643cced0e26ba24cc57b605b8c84b2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greyireland%2Falgorithm-pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greyireland%2Falgorithm-pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greyireland%2Falgorithm-pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greyireland%2Falgorithm-pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greyireland","download_url":"https://codeload.github.com/greyireland/algorithm-pattern/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251094583,"owners_count":21535324,"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":["algo","algorithm","leetcode","leetcode-go","pattern"],"created_at":"2024-07-31T09:01:17.073Z","updated_at":"2025-04-27T05:37:17.273Z","avatar_url":"https://github.com/greyireland.png","language":"Go","readme":"# 算法模板\n\n![来刷题了](https://img.fuiboom.com/img/title.png)\n\n算法模板，最科学的刷题方式，最快速的刷题路径，一个月从入门到 offer，你值得拥有 🐶~\n\n算法模板顾名思义就是刷题的套路模板，掌握了刷题模板之后，刷题也变得好玩起来了~\n\n\u003e 此项目是自己找工作时，从 0 开始刷 LeetCode 的心得记录，通过各种刷题文章、专栏、视频等总结了一套自己的刷题模板。\n\u003e\n\u003e 这个模板主要是介绍了一些通用的刷题模板，以及一些常见问题，如到底要刷多少题，按什么顺序来刷题，如何提高刷题效率等。\n\n## 在线文档\n\n在线文档 Gitbook：[算法模板 🔥](https://greyireland.gitbook.io/algorithm-pattern/)\n\n## 核心内容\n\n### 入门篇 🐶\n\n- [go 语言入门](./introduction/golang.md)\n- [算法快速入门](./introduction/quickstart.md)\n\n### 数据结构篇 🐰\n\n- [二叉树](./data_structure/binary_tree.md)\n- [链表](./data_structure/linked_list.md)\n- [栈和队列](./data_structure/stack_queue.md)\n- [二进制](./data_structure/binary_op.md)\n\n### 基础算法篇 🐮\n\n- [二分搜索](./basic_algorithm/binary_search.md)\n- [排序算法](./basic_algorithm/sort.md)\n- [动态规划](./basic_algorithm/dp.md)\n\n### 算法思维 🦁\n\n- [递归思维](./advanced_algorithm/recursion.md)\n- [滑动窗口思想](./advanced_algorithm/slide_window.md)\n- [二叉搜索树](./advanced_algorithm/binary_search_tree.md)\n- [回溯法](./advanced_algorithm/backtrack.md)\n\n## 心得体会\n\n文章大部分是对题目的思路介绍，和一些问题的解析，有了思路还是需要自己手动写写的，所以每篇文章最后都有对应的练习题\n\n刷完这些练习题，基本对数据结构和算法有自己的认识体会，基本大部分面试题都能写得出来，国内的 BAT、TMD 应该都不是问题\n\n从 4 月份找工作开始，从 0 开始刷 LeetCode，中间大概花了一个半月(6 周)左右时间刷完 240 题。\n\n![一个半月刷完240题](https://img.fuiboom.com/img/leetcode_time.png)\n\n![刷题记录](https://img.fuiboom.com/img/leetcode_record.png)\n\n开始刷题时，确实是无从下手，因为从序号开始刷，刷到几道题就遇到 hard 的题型，会卡住很久，后面去评论区看别人怎么刷题，也去 Google 搜索最好的刷题方式，发现按题型刷题会舒服很多，基本一个类型的题目，一天能做很多，慢慢刷题也不再枯燥，做起来也很有意思，最后也收到不错的 offer（最后去了宇宙系）。\n\n回到最开始的问题，面试到底要刷多少题，其实这个取决于你想进什么样公司，你定的目标如果是国内一线大厂，个人感觉大概 200 至 300 题基本就满足大部分面试需要了。第二个问题是按什么顺序刷及如何提高效率，这个也是本 repo 的目的，给你指定了一个刷题的顺序，以及刷题的模板，有了方向和技巧后，就去动手吧~ 希望刷完之后，你也能自己总结一套属于自己的刷题模板，有所收获，有所成长~\n\n## 推荐的刷题路径\n\n按此 repo 目录刷一遍，如果中间有题目卡住了先跳过，然后刷题一遍 LeetCode 探索基础卡片，最后快要面试时刷题一遍剑指 offer。\n\n为什么这么要这么刷，因为 repo 里面的题目是按类型归类，都是一些常见的高频题，很有代表性，大部分都是可以用模板加一点变形做出来，刷完后对大部分题目有基本的认识。然后刷一遍探索卡片，巩固一下一些基础知识点，总结这些知识点。最后剑指 offer 是大部分公司的出题源头，刷完面试中基本会遇到现题或者变形题，基本刷完这三部分，大部分国内公司的面试题应该就没什么问题了~\n\n1、 [algorithm-pattern 练习题](https://greyireland.gitbook.io/algorithm-pattern/)\n\n![练习题](https://img.fuiboom.com/img/repo_practice.png)\n\n2、 [LeetCode 卡片](https://leetcode-cn.com/explore/)\n\n![探索卡片](https://img.fuiboom.com/img/leetcode_explore.png)\n\n3、 [剑指 offer](https://leetcode-cn.com/problemset/lcof/)\n\n![剑指offer](https://img.fuiboom.com/img/leetcode_jzoffer.png)\n\n刷题时间可以合理分配，如果打算准备面试了，建议前面两部分 一个半月 （6 周）时间刷完，最后剑指 offer 半个月刷完，边刷可以边投简历进行面试，遇到不会的不用着急，往模板上套就对了，如果面试管给你提示，那就好好做，不要错过这大好机会~\n\n\u003e 注意点：如果为了找工作刷题，遇到 hard 的题如果有思路就做，没思路先跳过，先把基础打好，再来刷 hard 可能效果会更好~\n\n## 面试资源\n\n分享一些计算机的经典书籍，大部分对面试应该都有帮助，强烈推荐 🌝\n\n[我看过的 100 本书](https://github.com/greyireland/awesome-programming-books-1)\n\n## 更新计划\n\n持续更新中，觉得还可以的话点个 **star** 收藏呀 ⭐️~\n\n【 Github 】[https://github.com/greyireland/algorithm-pattern](https://github.com/greyireland/algorithm-pattern) ⭐️\n\n## 完成打卡\n\n完成计划之后，可以提交 Pull requests，在下面添加自己的项目仓库，完成自己的算法模板打卡呀~\n\n| 完成 | 用户                                              | 项目地址                                                            |\n| ---- | ------------------------------------------------- | ------------------------------------------------------------------- |\n| ✅   | [easyui](https://github.com/easyui/) | [algorithm-pattern-swift(Swift 实现)](https://github.com/easyui/algorithm-pattern-swift),[在线文档 Gitbook](https://zyj.gitbook.io/algorithm-pattern-swift/) |\n| ✅   | [wardseptember](https://github.com/wardseptember) | [notes(Java 实现)](https://github.com/wardseptember/notes)          |\n| ✅   | [dashidhy](https://github.com/dashidhy) | [algorithm-pattern-python(Python 实现)](https://github.com/dashidhy/algorithm-pattern-python) |\n| ✅   | [binzi56](https://github.com/binzi56) | [algorithm-pattern-c(c++ 实现)](https://github.com/binzi56/algorithm-pattern-c) |\n| ✅   | [lvseouren](https://github.com/lvseouren) | [algorithm-study-record(c++ 实现)](https://github.com/lvseouren/algorithm-study-record) |\n| ✅   | [chienmy](https://github.com/chienmy) | [algorithm-pattern-java(Java 实现)](https://github.com/chienmy/algorithm-pattern-java), [在线文档 Gitbook](https://chienmy.gitbook.io/algorithm-pattern-java/) |\n| ✅ | [ligecarryme](https://github.com/ligecarryme) | [algorithm-pattern-JavaScript(JS+TS实现)](https://github.com/ligecarryme/algorithm-pattern-JavaScript) |\n| ✅ | [Esdeath](https://github.com/Esdeath) | [algorithm-pattern-dart(dart实现)](https://github.com/Esdeath/algorithm-pattern-dart),[在线文档 Gitbook](https://ayaseeri.gitbook.io/algorithm-pattern-dart/) |\n| ✅ | [longpi1](https://github.com/longpi1) | [algorithm-pattern-golang(golang实现)](https://github.com/longpi1/algorithm-pattern)\n| ✅ | [tpxxn](https://github.com/tpxxn) | [algorithm-pattern-CSharp(C# 实现)](https://github.com/tpxxn/algorithm-pattern-CSharp)","funding_links":[],"categories":["Go","Awesome","计算机编程 数据结构与算法","数据结构与算法","算法","Go (531)","Github","Golang","Table of Contents"],"sub_categories":["网络服务_其他","Algorithm","Classical Algorithm"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreyireland%2Falgorithm-pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreyireland%2Falgorithm-pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreyireland%2Falgorithm-pattern/lists"}