Skip to content

Sanikaa2306/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

Two Pointers

0011-container-with-most-water
0015-3sum
0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0080-remove-duplicates-from-sorted-array-ii
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2265-partition-array-according-to-given-pivot
2414-move-pieces-to-obtain-a-string
3018-make-string-a-subsequence-using-cyclic-increments

String

0006-zigzag-conversion
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0043-multiply-strings
0079-word-search
0952-word-subsets
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2292-counting-words-with-a-given-prefix
2414-move-pieces-to-obtain-a-string
3018-make-string-a-subsequence-using-cyclic-increments

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2292-counting-words-with-a-given-prefix

Array

0011-container-with-most-water
0015-3sum
0018-4sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0035-search-insert-position
0046-permutations
0047-permutations-ii
0053-maximum-subarray
0066-plus-one
0079-word-search
0080-remove-duplicates-from-sorted-array-ii
0169-majority-element
0217-contains-duplicate
0407-trapping-rain-water-ii
0905-length-of-longest-fibonacci-subsequence
0952-word-subsets
1886-minimum-limit-of-balls-in-a-bag
2164-two-best-non-overlapping-events
2265-partition-array-according-to-given-pivot
2292-counting-words-with-a-given-prefix
2640-maximum-number-of-integers-to-choose-from-a-range-i
2685-first-completely-painted-row-or-column
3348-minimum-cost-walk-in-weighted-graph

Hash Table

0012-integer-to-roman
0013-roman-to-integer
0017-letter-combinations-of-a-phone-number
0169-majority-element
0217-contains-duplicate
0905-length-of-longest-fibonacci-subsequence
0952-word-subsets
2640-maximum-number-of-integers-to-choose-from-a-range-i
2685-first-completely-painted-row-or-column

Binary Search

0033-search-in-rotated-sorted-array
0035-search-insert-position
1886-minimum-limit-of-balls-in-a-bag
2164-two-best-non-overlapping-events
2640-maximum-number-of-integers-to-choose-from-a-range-i

Greedy

0011-container-with-most-water
2640-maximum-number-of-integers-to-choose-from-a-range-i

Sorting

0015-3sum
0018-4sum
0047-permutations-ii
0169-majority-element
0217-contains-duplicate
2164-two-best-non-overlapping-events
2640-maximum-number-of-integers-to-choose-from-a-range-i

Dynamic Programming

0022-generate-parentheses
0053-maximum-subarray
0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees
0905-length-of-longest-fibonacci-subsequence
2164-two-best-non-overlapping-events

Heap (Priority Queue)

0407-trapping-rain-water-ii
2164-two-best-non-overlapping-events

Breadth-First Search

0102-binary-tree-level-order-traversal
0407-trapping-rain-water-ii

Matrix

0079-word-search
0407-trapping-rain-water-ii
2685-first-completely-painted-row-or-column

Simulation

0043-multiply-strings
2265-partition-array-according-to-given-pivot

Math

0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0043-multiply-strings
0066-plus-one
0096-unique-binary-search-trees

Bit Manipulation

3348-minimum-cost-walk-in-weighted-graph

Union Find

3348-minimum-cost-walk-in-weighted-graph

Graph

3348-minimum-cost-walk-in-weighted-graph

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0046-permutations
0047-permutations-ii
0079-word-search
0095-unique-binary-search-trees-ii

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs

Recursion

0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal

Trie

0014-longest-common-prefix

Depth-First Search

0079-word-search
0094-binary-tree-inorder-traversal

Tree

0094-binary-tree-inorder-traversal
0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees
0102-binary-tree-level-order-traversal

Binary Tree

0094-binary-tree-inorder-traversal
0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees
0102-binary-tree-level-order-traversal

Binary Search Tree

0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees

Divide and Conquer

0053-maximum-subarray
0169-majority-element

Database

0197-rising-temperature
0577-employee-bonus
1153-product-sales-analysis-i
1258-article-views-i
1509-replace-employee-id-with-the-unique-identifier
1724-customer-who-visited-but-did-not-make-any-transactions
1801-average-time-of-process-per-machine
1827-invalid-tweets

Counting

0169-majority-element

About

Leetcode

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 22.1%
  • C++ 19.7%
  • Python 17.1%
  • TypeScript 14.6%
  • Go 13.0%
  • Rust 5.5%
  • Other 8.0%