# leetcode **Repository Path**: iu-dillon/leetcode ## Basic Information - **Project Name**: leetcode - **Description**: leetcode .net C# 实现 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-03 - **Last Updated**: 2022-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README - [1. 两数之和](https://leetcode-cn.com/problems/two-sum/) [源码](Leetcode/N0001) - [2. 两数相加](https://leetcode-cn.com/problems/add-two-numbers/) [源码](Leetcode/N0002) - [3. 无重复字符的最长子串](https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/) [源码](Leetcode/N0003) - [4. 寻找两个正序数组的中位数](https://leetcode-cn.com/problems/median-of-two-sorted-arrays/) [源码](Leetcode/N0004) - [5. 最长回文子串](https://leetcode-cn.com/problems/longest-palindromic-substring/) [源码](Leetcode/N0005) - [6. Z 字形变换](https://leetcode-cn.com/problems/zigzag-conversion/) [源码](Leetcode/N0006) - [7. 整数反转](https://leetcode-cn.com/problems/reverse-integer/) [源码](Leetcode/N0007) - [8. 字符串转换整数 (atoi)](https://leetcode-cn.com/problems/string-to-integer-atoi/) [源码](Leetcode/N0008) - [10. 正则表达式匹配](https://leetcode-cn.com/problems/strong-password-checker/) [源码](Leetcode/N0010) - [11. 盛最多水的容器](https://leetcode-cn.com/problems/container-with-most-water/) [源码](Leetcode/N0011) - [12. 整数转罗马数字](https://leetcode-cn.com/problems/integer-to-roman/) [源码](Leetcode/N0012) - [13. 罗马数字转整数](https://leetcode-cn.com/problems/roman-to-integer/) [源码](Leetcode/N0013) - [14. 最长公共前缀](https://leetcode-cn.com/problems/longest-common-prefix/) [源码](Leetcode/N0014) - [15. 三数之和](https://leetcode-cn.com/problems/3sum/) [源码](Leetcode/N0015) - [16. 最接近的三数之和](https://leetcode-cn.com/problems/3sum-closest/) [源码](Leetcode/N0016) - [17. 电话号码的字母组合](https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/) [源码](Leetcode/N0017) - [18. 四数之和](https://leetcode-cn.com/problems/4sum/) [源码](Leetcode/N0018) - [19. 删除链表的倒数第 N 个结点](https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/) [源码](Leetcode/N0019) - [22. 括号生成](https://leetcode-cn.com/problems/generate-parentheses/) [源码](Leetcode/N0022) - [24. 两两交换链表中的节点](https://leetcode-cn.com/problems/swap-nodes-in-pairs/) [源码](Leetcode/N0024) - [23. 合并K个升序链表](https://leetcode-cn.com/problems/merge-k-sorted-lists/) [源码](Leetcode/N0023) - [25. K 个一组翻转链表](https://leetcode-cn.com/problems/reverse-nodes-in-k-group/) [源码](Leetcode/N0025) - [29. 两数相除](https://leetcode-cn.com/problems/divide-two-integers/) [源码](Leetcode/N0029) - [30. 串联所有单词的子串](https://leetcode-cn.com/problems/substring-with-concatenation-of-all-words/) [源码](Leetcode/N0030) - [31. 下一个排列](https://leetcode-cn.com/problems/next-permutation/) [源码](Leetcode/N0031) - [32. 最长有效括号](https://leetcode-cn.com/problems/longest-valid-parentheses/) [源码](Leetcode/N0032) - [33. 搜索旋转排序数组](https://leetcode-cn.com/problems/search-in-rotated-sorted-array/) [源码](Leetcode/N0033) - [34. 在排序数组中查找元素的第一个和最后一个位置](https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/) [源码](Leetcode/N0034) - [36. 有效的数独](https://leetcode.cn/problems/valid-sudoku/) [源码](Leetcode/N0036) - [37. 解数独](https://leetcode-cn.com/problems/sudoku-solver/) [源码](Leetcode/N0037) - [41. 缺失的第一个正数](https://leetcode-cn.com/problems/first-missing-positive/) [源码](Leetcode/N0041) - [42. 接雨水](https://leetcode-cn.com/problems/trapping-rain-water/) [源码](Leetcode/N0042) - [44. 通配符匹配](https://leetcode-cn.com/problems/wildcard-matching/) [源码](Leetcode/N0044) - [51. N 皇后](https://leetcode-cn.com/problems/n-queens/) [源码](Leetcode/N0051) - [52. N皇后 II](https://leetcode-cn.com/problems/n-queens-ii/) [源码](Leetcode/N0052) - [56. 合并区间](https://leetcode.cn/problems/merge-intervals/) [源码](Leetcode/N0056) - [57. 插入区间](https://leetcode.cn/problems/insert-interval/) [源码](Leetcode/N0057) - [60. 排列序列](https://leetcode-cn.com/problems/permutation-sequence/) [源码](Leetcode/N0060) - [65. 有效数字](https://leetcode-cn.com/problems/valid-number/) [源码](Leetcode/N0065) - [68. 文本左右对齐](https://leetcode-cn.com/problems/text-justification/) [源码](Leetcode/N0068) - [76. 最小覆盖子串](https://leetcode-cn.com/problems/minimum-window-substring/) [源码](Leetcode/N0076) - [79. 单词搜索](https://leetcode-cn.com/problems/word-search/) [源码](Leetcode/N0039) - [84. 柱状图中最大的矩形](https://leetcode-cn.com/problems/largest-rectangle-in-histogram/) [源码](Leetcode/N0084) - [85. 最大矩形](https://leetcode-cn.com/problems/maximal-rectangle/) [源码](Leetcode/N0085) - [115. 不同的子序列](https://leetcode-cn.com/problems/distinct-subsequences/) [源码](Leetcode/N0115) - [121. 买卖股票的最佳时机](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/) [源码](Leetcode/N0121) - [122. 买卖股票的最佳时机 II](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/) [源码](Leetcode/N0122) - [123. 买卖股票的最佳时机 III](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/) [源码](Leetcode/N0123) - [124. 二叉树中的最大路径和](https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/) [源码](Leetcode/N0124) - [126. 单词接龙 II](https://leetcode-cn.com/problems/word-ladder-ii/) [源码](Leetcode/N0126) - [127. 单词接龙](https://leetcode-cn.com/problems/word-ladder/) [源码](Leetcode/N0127) - [131. 分割回文串](https://leetcode-cn.com/problems/palindrome-partitioning/) [源码](Leetcode/N0131) - [132. 分割回文串 II](https://leetcode-cn.com/problems/palindrome-partitioning-ii/) [源码](Leetcode/N0132) - [135. 分发糖果](https://leetcode-cn.com/problems/candy/) [源码](Leetcode/N0135) - [139. 单词拆分](https://leetcode-cn.com/problems/word-break/) [源码](Leetcode/N0139) - [140. 单词拆分 II](https://leetcode-cn.com/problems/word-break-ii/) [源码](Leetcode/N0140) - [164. 最大间距](https://leetcode-cn.com/problems/maximum-gap/) [源码](Leetcode/N0164) - [188. 买卖股票的最佳时机 IV](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iv/) [源码](Leetcode/N0188) - [191. 位1的个数](https://leetcode-cn.com/problems/number-of-1-bits/) [源码](Leetcode/N0191) - [204. 计数质数](https://leetcode-cn.com/problems/count-primes/) [源码](Leetcode/N0204) - [207. 课程表](https://leetcode-cn.com/problems/course-schedule/) [源码](Leetcode/N0207) - [208. 实现 Trie (前缀树)](https://leetcode-cn.com/problems/implement-trie-prefix-tree/) [源码](Leetcode/N0208) - [209. 长度最小的子数组](https://leetcode-cn.com/problems/minimum-size-subarray-sum/) [源码](Leetcode/N0209) - [212. 单词搜索 II](https://leetcode-cn.com/problems/word-search-ii/) [源码](Leetcode/N0212) - [214. 最短回文串](https://leetcode-cn.com/problems/shortest-palindrome/) [源码](Leetcode/N0214) - [224. 基本计算器](https://leetcode-cn.com/problems/basic-calculator/) [源码](Leetcode/N0214) - [227. 基本计算器 II](https://leetcode-cn.com/problems/basic-calculator-ii/) [源码](Leetcode/N0227) - [239. 滑动窗口最大值](https://leetcode-cn.com/problems/sliding-window-maximum/) [源码](Leetcode/N0239) - [297. 二叉树的序列化与反序列化](https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/) [源码](Leetcode/N0297) - [300. 最长递增子序列](https://leetcode-cn.com/problems/longest-increasing-subsequence/) [源码](Leetcode/N0300) - [301. 删除无效的括号](https://leetcode-cn.com/problems/remove-invalid-parentheses/) [源码](Leetcode/N0301) - [307. 区域和检索 - 数组可修改](https://leetcode-cn.com/problems/range-sum-query-mutable/) [源码](Leetcode/N0307) - [310. 最小高度树](https://leetcode-cn.com/problems/minimum-height-trees/) [源码](Leetcode/N0310) - [321. 拼接最大数](https://leetcode-cn.com/problems/create-maximum-number/) [源码](Leetcode/N0321) - [322. 零钱兑换](https://leetcode-cn.com/problems/coin-change/) [源码](Leetcode/N0322) - [327. 区间和的个数](https://leetcode-cn.com/problems/count-of-range-sum/) [源码](Leetcode/N0327) - [330. 按要求补齐数组](https://leetcode-cn.com/problems/patching-array/) [源码](Leetcode/N0330) - [332. 重新安排行程](https://leetcode-cn.com/problems/reconstruct-itinerary/) [源码](Leetcode/N0332) - [336. 回文对](https://leetcode-cn.com/problems/palindrome-pairs/) [源码](Leetcode/N0336) - [344. 反转字符串](https://leetcode-cn.com/problems/reverse-string/) [源码](Leetcode/N0344) - [354. 俄罗斯套娃信封问题](https://leetcode-cn.com/problems/russian-doll-envelopes/) [源码](Leetcode/N0354) - [357. 统计各位数字都不同的数字个数](https://leetcode-cn.com/problems/count-numbers-with-unique-digits/) [源码](Leetcode/N0357) - [380. O(1) 时间插入、删除和获取随机元素](https://leetcode-cn.com/problems/insert-delete-getrandom-o1/) [源码](Leetcode/N0380) - [385. 迷你语法分析器](https://leetcode-cn.com/problems/mini-parser/) [源码](Leetcode/N0385) - [386. 字典序排数](https://leetcode-cn.com/problems/lexicographical-numbers/) [源码](Leetcode/N0386) - [388. 文件的最长绝对路径](https://leetcode-cn.com/problems/longest-absolute-file-path/) [源码](Leetcode/N0388) - [396. 旋转函数](https://leetcode-cn.com/problems/rotate-function/) [源码](Leetcode/N0396) - [398. 随机数索引](https://leetcode-cn.com/problems/random-pick-index/) [源码](Leetcode/N0398) - [403. 青蛙过河](https://leetcode-cn.com/problems/frog-jump/) [源码](Leetcode/N0403) - [410. 分割数组的最大值](https://leetcode-cn.com/problems/split-array-largest-sum/) [源码](Leetcode/N0410) - [417. 太平洋大西洋水流问题](https://leetcode-cn.com/problems/pacific-atlantic-water-flow/) [源码](Leetcode/N0417) - [420. 强密码检验器](https://leetcode-cn.com/problems/strong-password-checker/) [源码](Leetcode/N0420) - [424. 替换后的最长重复字符](https://leetcode-cn.com/problems/longest-repeating-character-replacement/) [源码](Leetcode/N0424) - [427. 建立四叉树](https://leetcode-cn.com/problems/construct-quad-tree/) [源码](Leetcode/N0427) - [433. 最小基因变化](https://leetcode-cn.com/problems/minimum-genetic-mutation/) [源码](Leetcode/N0433) - [436. 寻找右区间](https://leetcode.cn/problems/find-right-interval/) [源码](Leetcode/N0436) - [440. 字典序的第K小数字](https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order/) [源码](Leetcode/N0440) - [442. 数组中重复的数据](https://leetcode-cn.com/problems/find-all-duplicates-in-an-array/) [源码](Leetcode/N0442) - [462. 最少移动次数使数组元素相等 II](https://leetcode.cn/problems/minimum-moves-to-equal-array-elements-ii/) [源码](Leetcode/N0462) - [467. 环绕字符串中唯一的子字符串](https://leetcode.cn/problems/unique-substrings-in-wraparound-string/) [源码](Leetcode/N0467) - [468. 验证IP地址](https://leetcode.cn/problems/validate-ip-address/) [源码](Leetcode/N0468) - [449. 序列化和反序列化二叉搜索树](https://leetcode.cn/problems/serialize-and-deserialize-bst/) [源码](Leetcode/N0449) - [453. 最小操作次数使数组元素相等](https://leetcode.cn/problems/minimum-moves-to-equal-array-elements/) [源码](Leetcode/N0453) - [458. 可怜的小猪](https://leetcode-cn.com/problems/poor-pigs/) [源码](Leetcode/N0458) - [429. N 叉树的层序遍历](https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal/) [源码](Leetcode/N0429) - [479. 最大回文数乘积](https://leetcode-cn.com/problems/largest-palindrome-product/) [源码](Leetcode/N0479) - [517. 超级洗衣机](https://leetcode-cn.com/problems/super-washing-machines/) [源码](Leetcode/N0517) - [547. 省份数量](https://leetcode-cn.com/problems/number-of-provinces/) [源码](Leetcode/N0547) - [587. 安装栅栏](https://leetcode-cn.com/problems/erect-the-fence/) [源码](Leetcode/N0587) - [591. 标签验证器](https://leetcode-cn.com/problems/tag-validator/) [源码](Leetcode/N0591) - [632. 最小区间](https://leetcode-cn.com/problems/smallest-range-covering-elements-from-k-lists/) [源码](Leetcode/N0632) - [668. 乘法表中第k小的数](https://leetcode.cn/problems/kth-smallest-number-in-multiplication-table/) [源码](Leetcode/N0668) - [675. 为高尔夫比赛砍树](https://leetcode.cn/problems/cut-off-trees-for-golf-event/) [源码](Leetcode/N0675) - [699. 掉落的方块](https://leetcode.cn/problems/falling-squares/) [源码](Leetcode/N0699) - [713. 乘积小于 K 的子数组](https://leetcode-cn.com/problems/subarray-product-less-than-k/) [源码](Leetcode/N0713) - [719. 找出第 k 小的距离对](https://leetcode-cn.com/problems/find-k-th-smallest-pair-distance/) [源码](Leetcode/N0719) - [744. 寻找比目标字母大的最小字母](https://leetcode-cn.com/problems/find-smallest-letter-greater-than-target/) [源码](Leetcode/N0744) - [762. 二进制表示中质数个计算置位](https://leetcode-cn.com/problems/prime-number-of-set-bits-in-binary-representation/) [源码](Leetcode/N0762) - [780. 到达终点](https://leetcode-cn.com/problems/reaching-points/) [源码](Leetcode/N0780) - [796. 旋转字符串](https://leetcode-cn.com/problems/rotate-string/) [源码](Leetcode/N0796) - [804. 唯一摩尔斯密码词](https://leetcode-cn.com/problems/unique-morse-code-words/) [源码](Leetcode/N0804) - [806. 写字符串需要的行数](https://leetcode-cn.com/problems/number-of-lines-to-write-string/) [源码](Leetcode/N0806) - [812. 最大三角形面积](https://leetcode.cn/problems/largest-triangle-area/) [源码](Leetcode/N0812) - [819. 最常见的单词](https://leetcode-cn.com/problems/most-common-word/) [源码](Leetcode/N0819) - [821. 字符的最短距离](https://leetcode-cn.com/problems/shortest-distance-to-a-character/) [源码](Leetcode/N0821) - [824. 山羊拉丁文](https://leetcode-cn.com/problems/goat-latin/) [源码](Leetcode/N0824) - [868. 二进制间距](https://leetcode-cn.com/problems/binary-gap/) [源码](Leetcode/N0868) - [877. 石子游戏](https://leetcode-cn.com/problems/stone-game/) [源码](Leetcode/N0877) - [883. 三维形体投影面积](https://leetcode-cn.com/problems/projection-area-of-3d-shapes/) [源码](Leetcode/N0883) - [899. 有序队列](https://leetcode-cn.com/problems/orderly-queue/) [源码](Leetcode/N0899) - [905. 按奇偶排序数组](https://leetcode-cn.com/problems/sort-array-by-parity/) [源码](Leetcode/N0905) - [908. 最小差值 I](https://leetcode-cn.com/problems/smallest-range-i/) [源码](Leetcode/N0908) - [910. 最小差值 II](https://leetcode-cn.com/problems/smallest-range-ii/) [源码](Leetcode/N0910) - [933. 最近的请求次数](https://leetcode-cn.com/problems/number-of-recent-calls/) [源码](Leetcode/N0933) - [937. 重新排列日志文件](https://leetcode-cn.com/problems/reorder-data-in-log-files/) [源码](Leetcode/N0937) - [942. 增减字符串匹配](https://leetcode.cn/problems/di-string-match/) [源码](Leetcode/N0942) - [944. 删列造序](https://leetcode.cn/problems/delete-columns-to-make-sorted/) [源码](Leetcode/N0944) - [953. 验证外星语词典](https://leetcode.cn/problems/verifying-an-alien-dictionary/) [源码](Leetcode/N0953) - [961. 在长度 2N 的数组中找出重复 N 次的元素](https://leetcode.cn/problems/n-repeated-element-in-size-2n-array/) [源码](Leetcode/N0961) - [965. 单值二叉树](https://leetcode.cn/problems/univalued-binary-tree/) [源码](Leetcode/N0965) - [991. 坏了的计算器](https://leetcode-cn.com/problems/broken-calculator/) [源码](Leetcode/N0991) - [992. K 个不同整数的子数组](https://leetcode-cn.com/problems/subarrays-with-k-different-integers/) [源码](Leetcode/N0992) - [1044. 最长重复子串](https://leetcode-cn.com/problems/longest-duplicate-substring/) [源码](Leetcode/N1044) - [1096. 花括号展开 II](https://leetcode-cn.com/problems/brace-expansion-ii/) [源码](Leetcode/N1096) - [1114. 按序打印](https://leetcode.cn/problems/print-in-order/) [源码](Leetcode/N1114) - [1115. 交替打印 FooBar](https://leetcode.cn/problems/print-foobar-alternately/) [源码](Leetcode/N1115) - [1116. 打印零与奇偶数](https://leetcode.cn/problems/print-zero-even-odd/) [源码](Leetcode/N1116) - [1117. H2O 生成](https://leetcode.cn/problems/building-h2o/) [源码](Leetcode/N1117) - [1140. 石子游戏 II](https://leetcode-cn.com/problems/stone-game-ii/) [源码](Leetcode/N1140) - [1195. 交替打印字符串](https://leetcode.cn/problems/fizz-buzz-multithreaded/) [源码](Leetcode/N1195) - [1278. 分割回文串 III](https://leetcode.cn/problems/palindrome-partitioning-iii/) [源码](Leetcode/N1278) - [1305. 两棵二叉搜索树中的所有元素](https://leetcode-cn.com/problems/all-elements-in-two-binary-search-trees/) [源码](Leetcode/N1305) - [1353. 最多可以参加的会议数目](https://leetcode-cn.com/problems/maximum-number-of-events-that-can-be-attended/) [源码](Leetcode/N1353) - [1392. 最长快乐前缀](https://leetcode-cn.com/problems/longest-happy-prefix/) [源码](Leetcode/N1392) - [1406. 石子游戏 III](https://leetcode-cn.com/problems/stone-game-iii/) [源码](Leetcode/N1406) - [1510. 石子游戏 IV](https://leetcode-cn.com/problems/stone-game-iv/) [源码](Leetcode/N1510) - [1563. 石子游戏 V](https://leetcode-cn.com/problems/stone-game-v/) [源码](Leetcode/N1563) - [1672. 最富有客户的资产总量](https://leetcode-cn.com/problems/richest-customer-wealth/) [源码](Leetcode/N1672) - [1686. 石子游戏 VI](https://leetcode-cn.com/problems/stone-game-vi/) [源码](Leetcode/N1686) - [1690. 石子游戏 VII](https://leetcode-cn.com/problems/stone-game-vii/) [源码](Leetcode/N1690) - [1703. 得到连续 K 个 1 的最少相邻交换次数](https://leetcode-cn.com/problems/minimum-adjacent-swaps-for-k-consecutive-ones/) [源码 和官网主流不一样的算法](Leetcode/N1703) - [1745. 回文串分割 IV](https://leetcode.cn/problems/palindrome-partitioning-iv/) [源码](Leetcode/N1745) - [1751. 最多可以参加的会议数目 II](https://leetcode-cn.com/problems/maximum-number-of-events-that-can-be-attended-ii/) [源码](Leetcode/N1751) - [1823. 找出游戏的获胜者](https://leetcode-cn.com/problems/find-the-winner-of-the-circular-game/) [源码](Leetcode/N1823) - [1872. 石子游戏 VIII](https://leetcode-cn.com/problems/stone-game-viii/) [源码](Leetcode/N1872) - [2030. 含特定字母的最小子序列](https://leetcode-cn.com/problems/smallest-k-length-subsequence-with-occurrences-of-a-letter/) [源码](Leetcode/N2030) - [2097. 合法重新排列数对](https://leetcode-cn.com/problems/valid-arrangement-of-pairs/) [源码](Leetcode/N2097) - [2218. 从栈中取出 K 个硬币的最大面值和](https://leetcode-cn.com/problems/maximum-value-of-k-coins-from-piles/) [源码](Leetcode/N2218) - [5234. 移除字母异位词后的结果数组](https://leetcode.cn/contest/weekly-contest-293/problems/find-resultant-array-after-removing-anagrams/) [源码](Leetcode/N5234) - [6064. 不含特殊楼层的最大连续楼层数](https://leetcode.cn/contest/weekly-contest-293/problems/maximum-consecutive-floors-without-special-floors/) [源码](Leetcode/N6064) - [6066. 统计区间中的整数数目](https://leetcode.cn/problems/count-integers-in-intervals/) [源码](Leetcode/N6066) - [面试题 01.05. 一次编辑](https://leetcode.cn/problems/one-away-lcci/) [源码](Leetcode/M0105) - [面试题 04.06. 后继者](https://leetcode.cn/problems/successor-lcci/) [源码](Leetcode/M0406) - [面试题 17.11. 单词距离](https://leetcode.cn/problems/find-closest-lcci/) [源码](Leetcode/M0711)