Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0003.longest-substring-without-repeating-characters | 无重复字符的最长子串 | Medium | Go | |
0019.remove-nth-node-from-end-of-list | 删除链表的倒数第 N 个结点 | Medium | Go | |
0027.remove-element | 移除元素 | Easy | Go | |
0030.substring-with-concatenation-of-all-words | 串联所有单词的子串 | Hard | Go | |
0042.trapping-rain-water | 接雨水 | Hard | Go | |
0075.sort-colors | 颜色分类 | Medium | Go | |
0076.minimum-window-substring | 最小覆盖子串 | Hard | Go | |
0080.remove-duplicates-from-sorted-array-ii | 删除有序数组中的重复项 II | Medium | Go | |
0424.longest-repeating-character-replacement | 替换后的最长重复字符 | Medium | Go | |
0443.string-compression | 压缩字符串 | Medium | Go | |
0524.longest-word-in-dictionary-through-deleting | 通过删除字母匹配到字典里最长单词 | Medium | Go | |
0718.maximum-length-of-repeated-subarray | 最长重复子数组 | Medium | Go | |
0930.binary-subarrays-with-sum | 和相同的二元子数组 | Medium | Go | |
1099.two-sum-less-than-k | 小于 K 的两数之和 | Easy | Go | |
1790.check-if-one-string-swap-can-make-strings-equal | 仅执行一次字符串交换能否使两个字符串相等 | Easy | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0067.add-binary | 二进制求和 | Easy | Go | |
0136.single-number | 只出现一次的数字 | Easy | Go | |
0137.single-number-ii | 只出现一次的数字 II | Medium | Go | |
0260.single-number-iii | 只出现一次的数字 III | Medium | Go | |
0371.sum-of-two-integers | 两整数之和 | Medium | Go | |
0401.binary-watch | 二进制手表 | Easy | Go | |
0421.maximum-xor-of-two-numbers-in-an-array | 数组中两个数的最大异或值 | Medium | Go | |
0461.hamming-distance | 汉明距离 | Easy | Go | |
0476.number-complement | 数字的补数 | Easy | Go | |
0477.total-hamming-distance | 汉明距离总和 | Medium | Go | |
0869.reordered-power-of-2 | 重新排序得到 2 的幂 | Medium | Go | |
1689.partitioning-into-minimum-number-of-deci-binary-numbers | 十-二进制数的最少数目 | Medium | Go | |
Offer 0015.er-jin-zhi-zhong-1de-ge-shu-lcof | 二进制中1的个数 | Medium | Go | |
Trans#0168.excel-sheet-column-title Excel | 表列名称 | Easy | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0014.longest-common-prefix | 最长公共前缀 | Easy | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0037.sudoku-solver | 解数独 | Hard | Go | |
0051.n-queens N | 皇后 | Hard | Go | |
0052.n-queens-ii N | 皇后 II | Hard | Go | |
Offer.0038.zi-fu-chuan-de-pai-lie-lcof | 字符串的排列 | Medium | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0179.largest-number | 最大数 | Medium | Go | |
面试题 17.14. 最小K个数 | Medium | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0011.container-with-most-water | 盛最多水的容器 | Medium | Go | |
0026.remove-duplicates-from-sorted-array | 删除有序数组中的重复项 | Easy | Go | |
1838.frequency-of-the-most-frequent-element | 最高频元素的频数 | Medium | Go | |
1894.find-the-student-that-will-replace-the-chalk | 找到需要补充粉笔的学生编号 | Medium | Go | |
Offer 53 - I. | 在排序数组中查找数字 I | Easy | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0022.generate-parentheses | Medium | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0042.trapping-rain-water | 接雨水 | Hard | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
Cnt Diff Xor | ✅ 0389.find-the-difference 找不同 | Easy | Go | |
Cnt Heap | ❌ 1086.high-five 前五科的均分 | Easy | Go | |
Cnt | ✅ 0359.logger-rate-limiter 限流器 | Easy | Go | |
Cnt | ✅ 0604.design-compressed-string-iterator 迭代压缩字符串 | Easy | Go | |
Cnt | ✅ 0888.fair-candy-swap 糖果棒交换后数量相等 | Easy | Go | |
Cnt | ✅ 1941.check-if-all-characters-have-equal-number-of-occurrences 检查是否所有字符出现次数相同 | Easy | Go | |
Cnt | ✅ LCS 02. 完成一半题目最少的题型 | Medium | Go | |
Diff | ✅ 0299.bulls-and-cows 公牛奶牛 | Medium | Go | |
Diff | ✅ 0349.intersection-of-two-arrays 两个数组的交集 | Easy | Go | |
Diff | ✅ 0350.intersection-of-two-arrays-ii 两个数组的交集 II | Easy | Go | |
Diff | ✅ 0771.jewels-and-stones 找J在S中的数量 | Easy | Go | |
Diff | ✅ 0819.most-common-word 最常见的单词 | Easy | Go | |
Diff | ✅ 1002.find-common-characters 查找公共字符 | Easy | Go | |
Distance | ✅ 1165.single-row-keyboard 机械手最少移动次数 | Easy | Go | |
Divide | ✅ 1119.remove-vowels-from-a-string 删去字符串中的元音 | Easy | Go | |
Divide | ✅ 1763.longest-nice-substring 大小写都出现的最长子串 | Easy | Go | |
Filter | ✅ 0217.contains-duplicate 出现重复 | Easy | Go | |
Filter | ✅ 0884.uncommon-words-from-two-sentences 两句话中的不常见单词 | Easy | Go | |
Filter | ✅ 1133.largest-unique-number 最大唯一数 | Easy | Go | |
Filter | ✅ 1394.find-lucky-integer-in-an-array 找出数组中的幸运数 | Easy | Go | |
Filter | ✅ 1748.sum-of-unique-elements 唯一元素的和 | Easy | Go | |
Filter | ✅ 1935.maximum-number-of-words-you-can-type 可以输入的最大单词数 | Easy | Go | |
Group GCD | ✅ 0914.x-of-a-kind-in-a-deck-of-cards 卡牌分组 | Easy | Go | |
Group | ✅ 0288.unique-word-abbreviation 单词是唯一缩写 | Medium | Go | |
Group | ✅ 0348.design-tic-tac-toe 设计井字棋 | Medium | Go | |
Group | ✅ 0500.keyboard-row 只返回键盘同一行的字母 | Easy | Go | |
Group | ✅ 0811.subdomain-visit-count 子域名访问次数 | Medium | Go | |
Group | ✅ 0929.unique-email-addresses 不同的邮件地址数 | Easy | Go | |
Group | ✅ 1128.number-of-equivalent-domino-pairs 等价多米诺骨牌对的数量 | Easy | Go | |
Group | ✅ 1275.find-winner-on-a-tic-tac-toe-game 找出井字棋的获胜者 | Easy | Go | |
Group | ✅ 1399.count-largest-group 统计最大组的数目 | Easy | Go | |
Group | ✅ 1512.number-of-good-pairs 好数对的数目 i < j && a[i] == a[j] | Easy | Go | |
Group | ✅ 1742.maximum-number-of-balls-in-a-box 盒子中小球的最大数量 | Easy | Go | |
Group | ✅ 1805.number-of-different-integers-in-a-string 字符串中不同整数的数目 | Easy | Go | |
Group | ✅ 2006.count-number-of-pairs-with-absolute-difference-k 差的绝对值为 K 的数对数目 | Easy | Go | |
Group | ✅ 2032.two-out-of-three 至少在两个数组中出现的值 | Easy | Go | |
Link 0356.line-reflection | 直线镜像 | Medium | Go | |
Link Trie | ✅ 0720.longest-word-in-dictionary 词典中连续递接 的最长单词 | Easy | Go | |
Link | ✅ 0205.isomorphic-strings 同构字符串 | Easy | Go | |
Link | ✅ 0290.word-pattern 单词规律 | Easy | Go | |
Link | ✅ 0734.sentence-similarity 句子相似性 | Easy | Go | |
Link | ✅ 0760.find-anagram-mappings 找A在B的位置 | Easy | Go | |
Link | ✅ 0953.verifying-an-alien-dictionary 验证外星语词典 | Easy | Go | |
Link | ✅ 1122.relative-sort-array 数组的相对排序 | Easy | Go | |
Link | ✅ 1331.rank-transform-of-an-array 数组序号转换 | Easy | Go | |
Link | ✅ 1346.check-if-n-and-its-double-exist 检查整数及其两倍数是否存在 | Easy | Go | |
Link | ✅ 1370.increasing-decreasing-string 上升下降字符串 | Easy | Go | |
Link | ❌ 0244.shortest-word-distance-ii 最短单词距离 II | Medium | Go | |
Link | ❌ 0599.minimum-index-sum-of-two-lists 相同值的最小索引总和 | Easy | Go | |
Link | ❌ 1640.check-array-formation-through-concatenation 能否连接形成数组 | Easy | Go | |
Link | ❌ 2007.find-original-array-from-doubled-array 从双倍数组中还原原数组 | Medium | Go | |
Link | ❌ 2013.detect-squares 检测正方形 | Medium | Go | |
Moore | 投票 ✅ 0169.majority-element 众数 | Easy | Go | |
Moore | 投票 ❌ 0229.majority-element-ii 求众数 II | Medium | Go | |
Permutation | ✅ 0128.longest-consecutive-sequence 最长递增 🤚 偏移 | Medium | Go | |
Permutation | ✅ 0242.valid-anagram 有效的字母异位词 🤚 | Easy | Go | |
Permutation | ✅ 0266.palindrome-permutation 有效回文 | Easy | Go | |
Permutation | ✅ 0383.ransom-note 全排列 == 子排列 | Easy | Go | |
Permutation | ✅ 0409.longest-palindrome 最长回文串 | Easy | Go | |
Permutation | ✅ 0575.distribute-candies 分糖果 🤚 最多类型 | Easy | Go | |
Permutation | ✅ 0594.longest-harmonious-subsequence 最长相差 1 子排列 🤚 偏移 | Easy | Go | |
Permutation | ✅ 0748.shortest-completing-word 最短补全词 | Easy | Go | |
Permutation | ✅ 0859.buddy-strings 交换一次后字符串相等 | Easy | Go | |
Permutation | ✅ 1160.find-words-that-can-be-formed-by-characters 拼写单词 | Easy | Go | |
Permutation | ✅ 1189.maximum-number-of-balloons “气球” 的最大数量 | Easy | Go | |
Permutation | ✅ 1426.counting-elements 存在 (值+1 的后置元素) 的元素个数 🤚 偏移 | Easy | Go | |
Permutation | ✅ 1460.make-two-arrays-equal-by-reversing-sub-arrays 通过翻转子数组使两个数组相等 | Easy | Go | |
Pre | ✅ 0930.binary-subarrays-with-sum 和相同的二元子数组 | Medium | Go | |
Pre | ❌ 1711.count-good-meals 大餐计数 | Medium | Go | |
Queue | ✅ 0362.design-hit-counter 敲击计数器 | Medium | Go | |
Scope | ✅ 0041.first-missing-positive 缺失的首个正数 🤚 剔除 标记 筛选 | Hard | Go | |
Score | ✅ 0442.find-all-duplicates-in-an-array 等值数组中 重复的数 🤚 偏移 标记 | Medium | Go | |
Score | ✅ 0448.find-all-numbers-disappeared-in-an-array 等值数组中 消失的数 🤚 偏移 标记 筛选 | Easy | Go | |
Score | ✅ 1636.sort-array-by-increasing-frequency 按照频率将数组升序排序 🤚 权重 | Easy | Go | |
Score | ✅ 1796.second-largest-digit-in-a-string 字符串中第二大的数字 | Easy | Go | |
Score | ❌ 0387.first-unique-character-in-a-string 字符串中的第一个唯一字符 🤚 标记索引 剔除 | Easy | Go | |
Vector | ✅ 0049.group-anagrams 字母异位词分组 | Medium | Go | |
Vector | ✅ 0249.group-shifted-strings 移位字符串分组 | Medium | Go | |
Vector | ✅ 0438.find-all-anagrams-in-a-string 找到字符串中所有字母异位词 | Medium | Go | |
Window Divide | ❌ 0395.longest-substring-with-at-least-k-repeating-characters 至少包含 K 个重复字符的最长子串 | Medium | Go | |
Window | ✅ 0003.longest-substring-without-repeating-characters 无重复的最长子串 | Medium | Go | |
Window | ✅ 0159.longest-substring-with-at-most-two-distinct-characters 至多包含两个不同字符的最长子串 | Medium | Go | |
Window | ✅ 0219.contains-duplicate-ii 两个重复元素距离小于等于K | Easy | Go | |
Window | ✅ 0246.strobogrammatic-number 中心对称数 | Easy | Go | |
Window | ✅ 0697.degree-of-an-array 度相同的最短连续子数组 | Easy | Go | |
Window | ✅ 0961.n-repeated-element-in-size-2n-array 2N 中重复 N 次的元素 | Easy | Go | |
Window | ✅ 1624.largest-substring-between-two-equal-characters 两个相同字符之间的最长子字符串 | Easy | Go | |
Window | ❌ 0325.maximum-size-subarray-sum-equals-k 和等于 k 的最长子数组长度 | Medium | Go | |
Window | ❌ 0340.longest-substring-with-at-most-k-distinct-characters 至多包含 K 个不同字符的最长子串 | Medium | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0045.jump-game-ii | 跳跃游戏 II | Medium | Go | |
0055.jump-game | 跳跃游戏 | Medium | Go | |
0134.gas-station | 加油站 | Medium | Go | |
0135.candy | 分发糖果 | Hard | Go | |
0678.valid-parenthesis-string | 有效的括号字符串 | Medium | Go |
Title | cn | Difficulty | Solution | Algorithm |
---|---|---|---|---|
0005.longest-palindromic-substring | 最长回文子串 (manacher) | Medium | Go | |
0028.implement-strstr | 实现 strStr() (kmp) | Easy | Go |