{"id":20180223,"url":"https://github.com/iron-buster/algorithm-study","last_synced_at":"2025-12-01T12:09:30.524Z","repository":{"id":204397593,"uuid":"711705827","full_name":"Iron-Buster/algorithm-study","owner":"Iron-Buster","description":"算法训练💭💡🎈（codeforces, atcoder, leetcode）","archived":false,"fork":false,"pushed_at":"2024-04-14T02:27:31.000Z","size":1009,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T10:50:11.556Z","etag":null,"topics":["algorithms-and-data-structures","codeforces-problems","go","java","leetcode-solutions","py3"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Iron-Buster.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}},"created_at":"2023-10-30T02:15:38.000Z","updated_at":"2024-04-16T15:39:10.010Z","dependencies_parsed_at":"2023-12-15T03:03:42.181Z","dependency_job_id":"53e1af1c-ec17-42f2-a91c-96ea4c00df62","html_url":"https://github.com/Iron-Buster/algorithm-study","commit_stats":{"total_commits":336,"total_committers":1,"mean_commits":336.0,"dds":0.0,"last_synced_commit":"0e3a65f512e75e0592c97ed60942a082ca74e1fa"},"previous_names":["iron-buster/algorithm-study"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-Buster%2Falgorithm-study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-Buster%2Falgorithm-study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-Buster%2Falgorithm-study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-Buster%2Falgorithm-study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Iron-Buster","download_url":"https://codeload.github.com/Iron-Buster/algorithm-study/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241616681,"owners_count":19991542,"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":["algorithms-and-data-structures","codeforces-problems","go","java","leetcode-solutions","py3"],"created_at":"2024-11-14T02:29:39.657Z","updated_at":"2025-12-01T12:09:25.469Z","avatar_url":"https://github.com/Iron-Buster.png","language":"Java","readme":"# 算法模板库（Algorithm Template）\n**该仓库包括一些常用的算法和数据结构模板，如二分、图论、数论、dp、树状数组、线段树、单调栈、字符串匹配等.**\n\n**算法训练（codeforces, atcoder, 🏀杯, nowcoder, leetcode），仓库包含了一些oj网站的题解，大部分是力扣的.**\n\n**部分模板来自 [灵神](https://github.com/EndlessCheng) 的仓库Go代码翻译.**\n\n**🤗欢迎进行模板的补充，提PR.**\n\n\n## 📖 Templates\n\n0. [二分查找 Binary Search](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/BisectTemplate.java)\n1. [位运算 Bit Ops](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/BitsTemplate.java)\n2. [大数模运算 BigMod](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/BigmodTemplate.java)\n3. [常用算法技巧 前缀和 差分 离散化 Common Skills](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/CommonTemplate.java)\n4. [数位DP](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/DigitalDpTemplate.java)\n5. [动态规划 DP](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/DP_Template.java)\n6. [树状数组 FenwickTree](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/FenwickTreeTemplate.java)\n7. [图论 最短路 Graph](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/GraphTemplate.java)\n8. [LCA 最近公共祖先 倍增](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/LcaTemplate.java)\n9. [Make Pal String](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/MakePalString.java)\n10. [组合数学 Comb](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/MathCombTemplate.java)\n11. [数论 Prime GCD LCM](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/MathTemplate.java)\n12. [单调栈](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/MonotoneStackTemplate.java)\n13. [搜索 DFS BFS](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/SearchTemplate.java)\n14. [线段树 Lazy Tag SegmentTree](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/SegmentTreeTemplate.java)\n15. [字符串 KMP 字符串哈希 String Match](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/StringTemplate.java)\n16. [树上差分](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/TreeDiffTemplate.java)\n17. [树形DP 换根DP](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/TreeDP_Template.java)\n18. [字典树 O1Trie Xor Trie](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/TrieTemplate.java)\n19. [并查集 DSU](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/UnionFindTemplate.java)\n20. [带权区间选择问题](https://github.com/Iron-Buster/algorithm-study/blob/main/algorithm-constent-template/src/com/fqh/WeightedIntervalScheduling.java)\n## 🍔 LeetCode Problems\n0. [LCA问题/倍增](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/LCA%E9%97%AE%E9%A2%98/%E5%80%8D%E5%A2%9E)\n1. [周赛/双周赛](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/contests)\n2. [hot100题](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/hot100)\n3. [kmp算法](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/kmp)\n4. [工具类](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/utils)\n5. [中位数](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E4%B8%AD%E4%BD%8D%E6%95%B0)\n6. [二分查找](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE)\n7. [二分答案](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E4%BA%8C%E5%88%86%E7%AD%94%E6%A1%88)\n8. [优先队列-Heap](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E4%BC%98%E5%85%88%E9%98%9F%E5%88%97)\n9. [位运算](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E4%BD%8D%E8%BF%90%E7%AE%97)\n10. [分组循环](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%88%86%E7%BB%84%E5%BE%AA%E7%8E%AF)\n11. [前缀和-PreSum](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%89%8D%E7%BC%80%E5%92%8C)\n12. [动态规划-DP](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%8A%A8%E6%80%81%E8%A7%84%E5%88%92)\n13. [单调栈](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%8D%95%E8%B0%83%E6%A0%88)\n14. [哈希表-HashMap](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%93%88%E5%B8%8C%E8%A1%A8)\n15. [回溯-Backtrack](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%9B%9E%E6%BA%AF)\n16. [图论-Graph](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%9B%BE%E8%AE%BA)\n17. [字典树-Trie](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%AD%97%E5%85%B8%E6%A0%91)\n18. [并查集-DSU](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E5%B9%B6%E6%9F%A5%E9%9B%86)\n19. [数学-Math](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E6%95%B0%E5%AD%A6)\n20. [数据结构设计](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E8%AE%BE%E8%AE%A1)\n21. [有序集合-SortedSet](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E6%9C%89%E5%BA%8F%E9%9B%86%E5%90%88)\n22. [树上差分](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E6%A0%91%E4%B8%8A%E5%B7%AE%E5%88%86)\n23. [树状数组-FenwickTree ](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E6%A0%91%E7%8A%B6%E6%95%B0%E7%BB%84)\n24. [滑动窗口-SlidingWindow](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E6%BB%91%E5%8A%A8%E7%AA%97%E5%8F%A3)\n25. [线段树-SegmentTree](https://github.com/Iron-Buster/algorithm-study/tree/main/leetcode/src/com/fqh/%E7%BA%BF%E6%AE%B5%E6%A0%91)\n## 😠 CodeForces\n0. [div2](https://github.com/Iron-Buster/algorithm-study/tree/main/codeforces/src/com/fqh/div2)\n1. [div3](https://github.com/Iron-Buster/algorithm-study/tree/main/codeforces/src/com/fqh/div3)\n2. [div4](https://github.com/Iron-Buster/algorithm-study/tree/main/codeforces/src/com/fqh/div4)\n\n## 🏀 蓝桥杯 Contest\n\n## 🚀 CodeFun 互联网笔试题\n0. [阿里云](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/aliyun)\n1. [得物](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/dewu)\n2. [滴滴](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/didi)\n3. [京东](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/jd)\n4. [科大讯飞](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/kdxf)\n5. [美团](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/meituan)\n6. [oppo](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/oppo)\n7. [淘天](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/taotian)\n8. [小红书](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/xiaohongshu)\n9. [携程](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/xiecheng)\n10. [小米](https://github.com/Iron-Buster/algorithm-study/tree/main/codefun/src/com/fqh/xiaomi)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firon-buster%2Falgorithm-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firon-buster%2Falgorithm-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firon-buster%2Falgorithm-study/lists"}