Skip to content

🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解

License

Notifications You must be signed in to change notification settings

rashid-flutter/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-GitHub-Doocs

open-source-organization languages LICENSE
stars forks

介绍

本项目包含 LeetCode、《剑指 Offer(第 2 版)》、《剑指 Offer(专项突击版)》、《程序员面试金典(第 6 版)》等题目的相关题解。所有题解均由多种编程语言实现,包括但不限于:Java、Python、C++、Go、TypeScript、Rust。我们正在全力更新,欢迎 Star 🌟 关注本项目,获取项目最新动态。

English Version

站点

https://doocs.github.io/leetcode

算法全解

专项突破

算法提升专题

1. 基础算法

2. 数据结构

3. 搜索

4. 动态规划(DP)

5. 高级数据结构

6. 图论

加入我们

刷编程题的最大好处就是可以锻炼解决问题的思维能力。相信我,「如何去思考」​ 本身也是一项需要不断学习和练习的技能。非常感谢前微软工程师、现蚂蚁金服技术专家 @kfstorm 贡献了本项目的所有 C# 题解

如果你对本项目感兴趣,并且希望加入我们刷题小分队,欢迎随时提交 PR。请参考如下步骤:

  1. 将本项目 fork 到你的个人 GitHub 帐户,然后 clone 到你的本地机器;
  2. 进入 leetcode 目录,切换到一个新的分支;
  3. 对项目做出一些变更,然后使用 git add、commit、push 等命令将你的本地变更提交到你的远程 GitHub 仓库;
  4. 将你的变更以 PR 的形式提交过来,项目的维护人员会在第一时间对你的变更进行 review!
  5. 你也可以参考帮助文档 https://help.github.com/cn 了解更多细节。

  how-to-contribute

Open in GitHub Codespaces

Stars 趋势

Stargazers over time

贡献者

感谢以下所有朋友对本项目的贡献!

赞助者

感谢以下个人、组织对本项目的支持和赞助!

"You help the developer community practice for interviews, and there is nothing better we could ask for." -- Alan Yessenbayev

推荐者

知名互联网科技博主 @爱可可-爱生活 微博推荐。

版权

本项目著作权归 GitHub 开源社区 Doocs 所有,商业转载请联系 @yanglbme 获得授权,非商业转载请注明出处。

联系我们

欢迎各位小伙伴们添加 @yanglbme 的个人微信(微信号:YLB0109),备注 「leetcode」。后续我们会创建算法、技术相关的交流群,大家一起交流学习,分享经验,共同进步。

许可证

知识共享 版权归属-相同方式共享 4.0 国际 公共许可证

LeetCode Topics

Array

0011-container-with-most-water
0015-3sum
0036-valid-sudoku
0042-trapping-rain-water
0048-rotate-image
0054-spiral-matrix
0068-text-justification
0073-set-matrix-zeroes
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0283-move-zeroes
0289-game-of-life
0380-insert-delete-getrandom-o1
0643-maximum-average-subarray-i
0948-sort-an-array
1046-max-consecutive-ones-iii
1196-filling-bookcase-shelves
1333-sort-the-jumbled-numbers
1556-make-two-arrays-equal-by-reversing-subarrays
1586-longest-subarray-of-1s-after-deleting-one-element
1711-find-valid-matrix-given-row-and-column-sums
1720-crawler-log-folder
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
1803-average-waiting-time
2472-build-a-matrix-with-conditions
2502-sort-the-people
2727-number-of-senior-citizens
2846-robot-collisions

Two Pointers

0011-container-with-most-water
0015-3sum
0028-find-the-index-of-the-first-occurrence-in-a-string
0042-trapping-rain-water
0125-valid-palindrome
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0283-move-zeroes
0392-is-subsequence
0443-string-compression
1798-max-number-of-k-sum-pairs

Dynamic Programming

0042-trapping-rain-water
0392-is-subsequence
1196-filling-bookcase-shelves
1586-longest-subarray-of-1s-after-deleting-one-element

Stack

0042-trapping-rain-water
0726-number-of-atoms
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
2846-robot-collisions

Monotonic Stack

0042-trapping-rain-water

Simulation

0054-spiral-matrix
0068-text-justification
0289-game-of-life
1803-average-waiting-time
2846-robot-collisions

Hash Table

0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0030-substring-with-concatenation-of-all-words
0036-valid-sudoku
0073-set-matrix-zeroes
0076-minimum-window-substring
0380-insert-delete-getrandom-o1
0726-number-of-atoms
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
2502-sort-the-people

Math

0012-integer-to-roman
0013-roman-to-integer
0048-rotate-image
0380-insert-delete-getrandom-o1

String

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0028-find-the-index-of-the-first-occurrence-in-a-string
0030-substring-with-concatenation-of-all-words
0058-length-of-last-word
0068-text-justification
0076-minimum-window-substring
0125-valid-palindrome
0151-reverse-words-in-a-string
0392-is-subsequence
0443-string-compression
0726-number-of-atoms
1298-reverse-substrings-between-each-pair-of-parentheses
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1720-crawler-log-folder
2502-sort-the-people
2727-number-of-senior-citizens

Trie

0014-longest-common-prefix

Sorting

0015-3sum
0726-number-of-atoms
0948-sort-an-array
1333-sort-the-jumbled-numbers
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
2502-sort-the-people
2846-robot-collisions

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Greedy

0011-container-with-most-water
1711-find-valid-matrix-given-row-and-column-sums

Matrix

0036-valid-sudoku
0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0289-game-of-life
1711-find-valid-matrix-given-row-and-column-sums
2472-build-a-matrix-with-conditions

Binary Search

0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
1046-max-consecutive-ones-iii

Graph

2472-build-a-matrix-with-conditions

Topological Sort

2472-build-a-matrix-with-conditions

Design

0380-insert-delete-getrandom-o1

Randomized

0380-insert-delete-getrandom-o1

Sliding Window

0003-longest-substring-without-repeating-characters
0030-substring-with-concatenation-of-all-words
0076-minimum-window-substring
0209-minimum-size-subarray-sum
0643-maximum-average-subarray-i
1046-max-consecutive-ones-iii
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element

Prefix Sum

0209-minimum-size-subarray-sum
1046-max-consecutive-ones-iii

Divide and Conquer

0948-sort-an-array

Heap (Priority Queue)

0948-sort-an-array

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

About

🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 22.5%
  • C++ 19.8%
  • Python 17.4%
  • TypeScript 13.9%
  • Go 13.1%
  • Rust 5.7%
  • Other 7.6%