ruanimal / leetcode

leetcode solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✏️ Leetcode Solutions with Python,Golang

Update time: 2023-02-06 23:28:31

Auto created by leetcode_cn_generate

Fork from bonfy

Changes:

  • change leetcode domain to www.leetcode-cn.com
  • drop chromedriver requirement
  • download solutions with chinese translation

I have solved 351 / 2402 problems while there are 353 problems still locked.

If you have any question, please give me an issue.

If you are loving solving problems in leetcode, please contact me to enjoy it together!

(Notes: 🔒 means you need to buy a book from Leetcode to unlock the problem)

# Title Source Code Article Difficulty
1 两数之和 two-sum Python Golang 📝 Easy
2 两数相加 add-two-numbers Python Golang 📝 Medium
4 寻找两个正序数组的中位数 median-of-two-sorted-arrays Python 📝 Hard
5 最长回文子串 longest-palindromic-substring Python 📝 Medium
6 N 字形变换 zigzag-conversion Python 📝 Medium
7 整数反转 reverse-integer Python 📝 Medium
8 字符串转换整数 (atoi) string-to-integer-atoi Python 📝 Medium
9 回文数 palindrome-number Python 📝 Easy
11 盛最多水的容器 container-with-most-water Python 📝 Medium
12 整数转罗马数字 integer-to-roman Python 📝 Medium
13 罗马数字转整数 roman-to-integer Python 📝 Easy
14 最长公共前缀 longest-common-prefix Python 📝 Easy
15 三数之和 3sum Python 📝 Medium
16 最接近的三数之和 3sum-closest Python 📝 Medium
17 电话号码的字母组合 letter-combinations-of-a-phone-number Python 📝 Medium
18 四数之和 4sum Python 📝 Medium
19 删除链表的倒数第 N 个结点 remove-nth-node-from-end-of-list Python 📝 Medium
20 有效的括号 valid-parentheses Python 📝 Easy
21 合并两个有序链表 merge-two-sorted-lists Python 📝 Easy
22 括号生成 generate-parentheses Python 📝 Medium
23 合并K个升序链表 merge-k-sorted-lists Python 📝 Hard
24 两两交换链表中的节点 swap-nodes-in-pairs Python 📝 Medium
25 K 个一组翻转链表 reverse-nodes-in-k-group Python 📝 Hard
26 删除有序数组中的重复项 remove-duplicates-from-sorted-array Python 📝 Easy
27 移除元素 remove-element Python 📝 Easy
28 找出字符串中第一个匹配项的下标 find-the-index-of-the-first-occurrence-in-a-string Python 📝 Medium
29 两数相除 divide-two-integers Python 📝 Medium
33 搜索旋转排序数组 search-in-rotated-sorted-array Python 📝 Medium
34 在排序数组中查找元素的第一个和最后一个位置 find-first-and-last-position-of-element-in-sorted-array Python 📝 Medium
35 搜索插入位置 search-insert-position Python 📝 Easy
36 有效的数独 valid-sudoku Python 📝 Medium
37 解数独 sudoku-solver Python 📝 Hard
38 外观数列 count-and-say Python 📝 Medium
39 组合总和 combination-sum Python 📝 Medium
40 组合总和 II combination-sum-ii Python 📝 Medium
42 接雨水 trapping-rain-water Python 📝 Hard
43 字符串相乘 multiply-strings Python 📝 Medium
46 全排列 permutations Python 📝 Medium
47 全排列 II permutations-ii Python 📝 Medium
50 Pow(x, n) powx-n Python 📝 Medium
51 N 皇后 n-queens Python 📝 Hard
53 最大子数组和 maximum-subarray Python 📝 Medium
54 螺旋矩阵 spiral-matrix Python 📝 Medium
58 最后一个单词的长度 length-of-last-word Python 📝 Easy
59 螺旋矩阵 II spiral-matrix-ii Python 📝 Medium
61 旋转链表 rotate-list Python 📝 Medium
64 最小路径和 minimum-path-sum Python 📝 Medium
66 加一 plus-one Python 📝 Easy
67 二进制求和 add-binary Python 📝 Easy
69 x 的平方根 sqrtx Python 📝 Easy
70 爬楼梯 climbing-stairs Python 📝 Easy
72 编辑距离 edit-distance Python 📝 Hard
74 搜索二维矩阵 search-a-2d-matrix Python 📝 Medium
77 组合 combinations Python 📝 Medium
78 子集 subsets Python 📝 Medium
81 搜索旋转排序数组 II search-in-rotated-sorted-array-ii Python 📝 Medium
82 删除排序链表中的重复元素 II remove-duplicates-from-sorted-list-ii Python 📝 Medium
83 删除排序链表中的重复元素 remove-duplicates-from-sorted-list Python 📝 Easy
86 分隔链表 partition-list Python 📝 Medium
88 合并两个有序数组 merge-sorted-array Python 📝 Easy
89 格雷编码 gray-code Python 📝 Medium
90 子集 II subsets-ii Python 📝 Medium
92 反转链表 II reverse-linked-list-ii Python 📝 Medium
94 二叉树的中序遍历 binary-tree-inorder-traversal Python 📝 Easy
98 验证二叉搜索树 validate-binary-search-tree Python 📝 Medium
100 相同的树 same-tree Python 📝 Easy
101 对称二叉树 symmetric-tree Python 📝 Easy
104 二叉树的最大深度 maximum-depth-of-binary-tree Python 📝 Easy
105 从前序与中序遍历序列构造二叉树 construct-binary-tree-from-preorder-and-inorder-traversal Python 📝 Medium
106 从中序与后序遍历序列构造二叉树 construct-binary-tree-from-inorder-and-postorder-traversal Python 📝 Medium
107 二叉树的层序遍历 II binary-tree-level-order-traversal-ii Python 📝 Medium
108 将有序数组转换为二叉搜索树 convert-sorted-array-to-binary-search-tree Python 📝 Easy
111 二叉树的最小深度 minimum-depth-of-binary-tree Python 📝 Easy
112 路径总和 path-sum Python 📝 Easy
114 二叉树展开为链表 flatten-binary-tree-to-linked-list Python 📝 Medium
116 填充每个节点的下一个右侧节点指针 populating-next-right-pointers-in-each-node Python 📝 Medium
118 杨辉三角 pascals-triangle Python 📝 Easy
119 杨辉三角 II pascals-triangle-ii Python 📝 Easy
121 买卖股票的最佳时机 best-time-to-buy-and-sell-stock Python 📝 Easy
122 买卖股票的最佳时机 II best-time-to-buy-and-sell-stock-ii Python 📝 Medium
125 验证回文串 valid-palindrome Python 📝 Easy
131 分割回文串 palindrome-partitioning Python 📝 Medium
136 只出现一次的数字 single-number Python 📝 Easy
137 只出现一次的数字 II single-number-ii Python 📝 Medium
141 环形链表 linked-list-cycle Python 📝 Easy
142 环形链表 II linked-list-cycle-ii Python 📝 Medium
143 重排链表 reorder-list Python 📝 Medium
146 LRU 缓存 lru-cache Python 📝 Medium
147 对链表进行插入排序 insertion-sort-list Python 📝 Medium
148 排序链表 sort-list Python 📝 Medium
153 寻找旋转排序数组中的最小值 find-minimum-in-rotated-sorted-array Python 📝 Medium
154 寻找旋转排序数组中的最小值 II find-minimum-in-rotated-sorted-array-ii Python 📝 Hard
155 最小栈 min-stack Python 📝 Medium
160 相交链表 intersection-of-two-linked-lists Python 📝 Easy
162 寻找峰值 find-peak-element Python 📝 Medium
167 两数之和 II - 输入有序数组 two-sum-ii-input-array-is-sorted Python 📝 Medium
168 Excel表列名称 excel-sheet-column-title Python 📝 Easy
169 多数元素 majority-element Python 📝 Easy
171 Excel 表列序号 excel-sheet-column-number Python 📝 Easy
172 阶乘后的零 factorial-trailing-zeroes Python 📝 Medium
189 轮转数组 rotate-array Python 📝 Medium
190 颠倒二进制位 reverse-bits Python 📝 Easy
191 位1的个数 number-of-1-bits Python 📝 Easy
198 打家劫舍 house-robber Python 📝 Medium
202 快乐数 happy-number Python 📝 Easy
203 移除链表元素 remove-linked-list-elements Python 📝 Easy
204 计数质数 count-primes Python 📝 Medium
205 同构字符串 isomorphic-strings Python 📝 Easy
206 反转链表 reverse-linked-list Python 📝 Easy
208 实现 Trie (前缀树) implement-trie-prefix-tree Python 📝 Medium
215 数组中的第K个最大元素 kth-largest-element-in-an-array Python 📝 Medium
217 存在重复元素 contains-duplicate Python 📝 Easy
219 存在重复元素 II contains-duplicate-ii Python 📝 Easy
222 完全二叉树的节点个数 count-complete-tree-nodes Python 📝 Medium
225 用队列实现栈 implement-stack-using-queues Python 📝 Easy
226 翻转二叉树 invert-binary-tree Python 📝 Easy
230 二叉搜索树中第K小的元素 kth-smallest-element-in-a-bst Python 📝 Medium
231 2 的幂 power-of-two Python 📝 Easy
232 用栈实现队列 implement-queue-using-stacks Python 📝 Easy
234 回文链表 palindrome-linked-list Python 📝 Easy
235 二叉搜索树的最近公共祖先 lowest-common-ancestor-of-a-binary-search-tree Python 📝 Medium
236 二叉树的最近公共祖先 lowest-common-ancestor-of-a-binary-tree Python 📝 Medium
237 删除链表中的节点 delete-node-in-a-linked-list Python 📝 Medium
238 除自身以外数组的乘积 product-of-array-except-self Python 📝 Medium
240 搜索二维矩阵 II search-a-2d-matrix-ii Python 📝 Medium
242 有效的字母异位词 valid-anagram Python 📝 Easy
257 二叉树的所有路径 binary-tree-paths Python 📝 Easy
258 各位相加 add-digits Python 📝 Easy
260 只出现一次的数字 III single-number-iii Python 📝 Medium
263 丑数 ugly-number Python 📝 Easy
268 丢失的数字 missing-number Python 📝 Easy
274 H 指数 h-index Python 📝 Medium
275 H 指数 II h-index-ii Python 📝 Medium
278 第一个错误的版本 first-bad-version Python 📝 Easy
283 移动零 move-zeroes Python 📝 Easy
287 寻找重复数 find-the-duplicate-number Python 📝 Medium
289 生命游戏 game-of-life Python 📝 Medium
290 单词规律 word-pattern Python 📝 Easy
292 Nim 游戏 nim-game Python 📝 Easy
297 二叉树的序列化与反序列化 serialize-and-deserialize-binary-tree Python 📝 Hard
300 最长递增子序列 longest-increasing-subsequence Python 📝 Medium
303 区域和检索 - 数组不可变 range-sum-query-immutable Python 📝 Easy
315 计算右侧小于当前元素的个数 count-of-smaller-numbers-after-self Python 📝 Hard
322 零钱兑换 coin-change Python 📝 Medium
326 3 的幂 power-of-three Python 📝 Easy
328 奇偶链表 odd-even-linked-list Python 📝 Medium
338 比特位计数 counting-bits Python 📝 Easy
341 扁平化嵌套列表迭代器 flatten-nested-list-iterator Python 📝 Medium
342 4的幂 power-of-four Python 📝 Easy
344 反转字符串 reverse-string Python 📝 Easy
345 反转字符串中的元音字母 reverse-vowels-of-a-string Python 📝 Easy
349 两个数组的交集 intersection-of-two-arrays Python 📝 Easy
350 两个数组的交集 II intersection-of-two-arrays-ii Python 📝 Easy
352 将数据流变为多个不相交区间 data-stream-as-disjoint-intervals Python 📝 Hard
354 俄罗斯套娃信封问题 russian-doll-envelopes Python 📝 Hard
367 有效的完全平方数 valid-perfect-square Python 📝 Easy
371 两整数之和 sum-of-two-integers Python 📝 Medium
374 猜数字大小 guess-number-higher-or-lower Python 📝 Easy
378 有序矩阵中第 K 小的元素 kth-smallest-element-in-a-sorted-matrix Python 📝 Medium
383 赎金信 ransom-note Python 📝 Easy
387 字符串中的第一个唯一字符 first-unique-character-in-a-string Python 📝 Easy
389 找不同 find-the-difference Python 📝 Easy
400 第 N 位数字 nth-digit Python 📝 Medium
401 二进制手表 binary-watch Python 📝 Easy
404 左叶子之和 sum-of-left-leaves Python 📝 Easy
405 数字转换为十六进制数 convert-a-number-to-hexadecimal Python 📝 Easy
406 根据身高重建队列 queue-reconstruction-by-height Python 📝 Medium
409 最长回文串 longest-palindrome Python 📝 Easy
412 Fizz Buzz fizz-buzz Python 📝 Easy
414 第三大的数 third-maximum-number Python 📝 Easy
415 字符串相加 add-strings Python 📝 Easy
416 分割等和子集 partition-equal-subset-sum Python 📝 Medium
434 字符串中的单词数 number-of-segments-in-a-string Python 📝 Easy
437 路径总和 III path-sum-iii Python 📝 Medium
438 找到字符串中所有字母异位词 find-all-anagrams-in-a-string Python 📝 Medium
440 字典序的第K小数字 k-th-smallest-in-lexicographical-order Python 📝 Hard
441 排列硬币 arranging-coins Python 📝 Easy
443 压缩字符串 string-compression Python 📝 Medium
445 两数相加 II add-two-numbers-ii Python 📝 Medium
447 回旋镖的数量 number-of-boomerangs Python 📝 Medium
448 找到所有数组中消失的数字 find-all-numbers-disappeared-in-an-array Python 📝 Easy
450 删除二叉搜索树中的节点 delete-node-in-a-bst Python 📝 Medium
453 最小操作次数使数组元素相等 minimum-moves-to-equal-array-elements Python 📝 Medium
455 分发饼干 assign-cookies Python 📝 Easy
459 重复的子字符串 repeated-substring-pattern Python 📝 Easy
461 汉明距离 hamming-distance Python 📝 Easy
463 岛屿的周长 island-perimeter Python 📝 Easy
475 供暖器 heaters Python 📝 Medium
476 数字的补数 number-complement Python 📝 Easy
482 密钥格式化 license-key-formatting Python 📝 Easy
485 最大连续 1 的个数 max-consecutive-ones Python 📝 Easy
492 构造矩形 construct-the-rectangle Python 📝 Easy
494 目标和 target-sum Python 📝 Medium
496 下一个更大元素 I next-greater-element-i Python 📝 Easy
500 键盘行 keyboard-row Python 📝 Easy
504 七进制数 base-7 Python 📝 Easy
506 相对名次 relative-ranks Python 📝 Easy
507 完美数 perfect-number Python 📝 Easy
516 最长回文子序列 longest-palindromic-subsequence Python 📝 Medium
518 零钱兑换 II coin-change-ii Python 📝 Medium
520 检测大写字母 detect-capital Python 📝 Easy
521 最长特殊序列 Ⅰ longest-uncommon-subsequence-i Python 📝 Easy
530 二叉搜索树的最小绝对差 minimum-absolute-difference-in-bst Python 📝 Easy
532 数组中的 k-diff 数对 k-diff-pairs-in-an-array Python 📝 Medium
535 TinyURL 的加密与解密 encode-and-decode-tinyurl Python 📝 Medium
538 把二叉搜索树转换为累加树 convert-bst-to-greater-tree Python 📝 Medium
541 反转字符串 II reverse-string-ii Python 📝 Easy
543 二叉树的直径 diameter-of-binary-tree Python 📝 Easy
551 学生出勤记录 I student-attendance-record-i Python 📝 Easy
557 反转字符串中的单词 III reverse-words-in-a-string-iii Python 📝 Easy
561 数组拆分 array-partition Python 📝 Easy
566 重塑矩阵 reshape-the-matrix Python 📝 Easy
575 分糖果 distribute-candies Python 📝 Easy
581 最短无序连续子数组 shortest-unsorted-continuous-subarray Python 📝 Medium
594 最长和谐子序列 longest-harmonious-subsequence Python 📝 Easy
598 范围求和 II range-addition-ii Python 📝 Easy
599 两个列表的最小索引总和 minimum-index-sum-of-two-lists Python 📝 Easy
605 种花问题 can-place-flowers Python 📝 Easy
606 根据二叉树创建字符串 construct-string-from-binary-tree Python 📝 Easy
617 合并二叉树 merge-two-binary-trees Python 📝 Easy
628 三个数的最大乘积 maximum-product-of-three-numbers Python 📝 Easy
633 平方数之和 sum-of-square-numbers Python 📝 Medium
637 二叉树的层平均值 average-of-levels-in-binary-tree Python 📝 Easy
643 子数组最大平均数 I maximum-average-subarray-i Python 📝 Easy
645 错误的集合 set-mismatch Python 📝 Easy
652 寻找重复的子树 find-duplicate-subtrees Python 📝 Medium
653 两数之和 IV - 输入二叉搜索树 two-sum-iv-input-is-a-bst Python 📝 Easy
654 最大二叉树 maximum-binary-tree Python 📝 Medium
657 机器人能否返回原点 robot-return-to-origin Python 📝 Easy
661 图片平滑器 image-smoother Python 📝 Easy
665 非递减数列 non-decreasing-array Python 📝 Medium
669 修剪二叉搜索树 trim-a-binary-search-tree Python 📝 Medium
674 最长连续递增序列 longest-continuous-increasing-subsequence Python 📝 Easy
680 验证回文串 II valid-palindrome-ii Python 📝 Easy
682 棒球比赛 baseball-game Python 📝 Easy
686 重复叠加字符串匹配 repeated-string-match Python 📝 Medium
687 最长同值路径 longest-univalue-path Python 📝 Medium
690 员工的重要性 employee-importance Python 📝 Medium
693 交替位二进制数 binary-number-with-alternating-bits Python 📝 Easy
696 计数二进制子串 count-binary-substrings Python 📝 Easy
697 数组的度 degree-of-an-array Python 📝 Easy
717 1 比特与 2 比特字符 1-bit-and-2-bit-characters Python 📝 Easy
720 词典中最长的单词 longest-word-in-dictionary Python 📝 Medium
724 寻找数组的中心下标 find-pivot-index Python 📝 Easy
725 分隔链表 split-linked-list-in-parts Python 📝 Medium
728 自除数 self-dividing-numbers Python 📝 Easy
742 转换成小写字母 to-lower-case Python 📝 Easy
745 寻找比目标字母大的最小字母 find-smallest-letter-greater-than-target Python 📝 Easy
747 使用最小花费爬楼梯 min-cost-climbing-stairs Python 📝 Easy
748 至少是其他数字两倍的最大数 largest-number-at-least-twice-of-others Python 📝 Easy
749 最短补全词 shortest-completing-word Python 📝 Easy
754 破解保险箱 cracking-the-safe Python 📝 Hard
755 到达终点数字 reach-a-number Python 📝 Medium
764 N 叉树的层序遍历 n-ary-tree-level-order-traversal Python 📝 Medium
767 二进制表示中质数个计算置位 prime-number-of-set-bits-in-binary-representation Python 📝 Easy
774 N 叉树的最大深度 maximum-depth-of-n-ary-tree Python 📝 Easy
775 N 叉树的前序遍历 n-ary-tree-preorder-traversal Python 📝 Easy
776 N 叉树的后序遍历 n-ary-tree-postorder-traversal Python 📝 Easy
777 托普利茨矩阵 toeplitz-matrix Python 📝 Easy
782 宝石与石头 jewels-and-stones Python 📝 Easy
783 二叉搜索树中的搜索 search-in-a-binary-search-tree Python 📝 Easy
784 二叉搜索树中的插入操作 insert-into-a-binary-search-tree Python 📝 Medium
789 数据流中的第 K 大元素 kth-largest-element-in-a-stream Python 📝 Easy
792 二分查找 binary-search Python 📝 Easy
799 二叉搜索树节点最小距离 minimum-distance-between-bst-nodes Python 📝 Easy
800 字母大小写全排列 letter-case-permutation Python 📝 Medium
804 旋转数字 rotated-digits Python 📝 Medium
812 旋转字符串 rotate-string Python 📝 Easy
816 设计哈希集合 design-hashset Python 📝 Easy
817 设计哈希映射 design-hashmap Python 📝 Easy
822 唯一摩尔斯密码词 unique-morse-code-words Python 📝 Easy
824 写字符串需要的行数 number-of-lines-to-write-string Python 📝 Easy
825 保持城市天际线 max-increase-to-keep-city-skyline Python 📝 Medium
829 子域名访问计数 subdomain-visit-count Python 📝 Medium
830 最大三角形面积 largest-triangle-area Python 📝 Easy
837 最常见的单词 most-common-word Python 📝 Easy
838 设计链表 design-linked-list Python 📝 Medium
841 字符的最短距离 shortest-distance-to-a-character Python 📝 Easy
851 山羊拉丁文 goat-latin Python 📝 Easy
857 较大分组的位置 positions-of-large-groups Python 📝 Easy
861 翻转图像 flipping-an-image Python 📝 Easy
866 矩形重叠 rectangle-overlap Python 📝 Easy
870 矩阵中的幻方 magic-squares-in-grid Python 📝 Medium
874 比较含退格的字符串 backspace-string-compare Python 📝 Easy
879 到最近的人的最大距离 maximize-distance-to-closest-person Python 📝 Medium
882 山脉数组的峰顶索引 peak-index-in-a-mountain-array Python 📝 Medium
889 亲密字符串 buddy-strings Python 📝 Easy
890 柠檬水找零 lemonade-change Python 📝 Easy
898 转置矩阵 transpose-matrix Python 📝 Easy
899 二进制间距 binary-gap Python 📝 Easy
903 用 Rand7() 实现 Rand10() implement-rand10-using-rand7 Python 📝 Medium
904 叶子相似的树 leaf-similar-trees Python 📝 Easy
906 模拟行走机器人 walking-robot-simulation Python 📝 Medium
908 链表的中间结点 middle-of-the-linked-list Python 📝 Easy
909 石子游戏 stone-game Python 📝 Medium
919 三维形体投影面积 projection-area-of-3d-shapes Python 📝 Easy
920 两句话中的不常见单词 uncommon-words-from-two-sentences Python 📝 Easy
924 公平的糖果交换 fair-candy-swap Python 📝 Easy
925 根据前序和后序遍历构造二叉树 construct-binary-tree-from-preorder-and-postorder-traversal Python 📝 Medium
928 三维形体的表面积 surface-area-of-3d-shapes Python 📝 Easy
929 特殊等价字符串组 groups-of-special-equivalent-strings Python 📝 Medium
932 单调数列 monotonic-array Python 📝 Easy
933 递增顺序搜索树 increasing-order-search-tree Python 📝 Easy
941 按奇偶排序数组 sort-array-by-parity Python 📝 Easy
944 最小差值 I smallest-range-i Python 📝 Easy
950 卡牌分组 x-of-a-kind-in-a-deck-of-cards Python 📝 Easy
953 仅仅反转字母 reverse-only-letters Python 📝 Easy
958 按奇偶排序数组 II sort-array-by-parity-ii Python 📝 Easy
961 长按键入 long-pressed-name Python 📝 Easy
965 独特的电子邮件地址 unique-email-addresses Python 📝 Easy
967 下降路径最小和 minimum-falling-path-sum Python 📝 Medium
969 最近的请求次数 number-of-recent-calls Python 📝 Easy
974 重新排列日志文件 reorder-data-in-log-files Python 📝 Medium
975 二叉搜索树的范围和 range-sum-of-bst Python 📝 Easy
978 有效的山脉数组 valid-mountain-array Python 📝 Easy
979 增减字符串匹配 di-string-match Python 📝 Easy
981 删列造序 delete-columns-to-make-sorted Python 📝 Easy
986 给定数字能组成的最大时间 largest-time-for-given-digits Python 📝 Medium
987 按递增顺序显示卡牌 reveal-cards-in-increasing-order Python 📝 Medium
990 验证外星语词典 verifying-an-alien-dictionary Python 📝 Easy
1001 在长度 2N 的数组中找出重复 N 次的元素 n-repeated-element-in-size-2n-array Python 📝 Easy
1005 单值二叉树 univalued-binary-tree Python 📝 Easy
1010 强整数 powerful-integers Python 📝 Medium
1013 斐波那契数 fibonacci-number Python 📝 Easy
1018 三角形的最大周长 largest-perimeter-triangle Python 📝 Easy
1019 有序数组的平方 squares-of-a-sorted-array Python 📝 Easy
1027 查询后的偶数和 sum-of-even-numbers-after-queries Python 📝 Medium
1031 数组形式的整数加法 add-to-array-form-of-integer Python 📝 Easy
1035 二叉树的堂兄弟节点 cousins-in-binary-tree Python 📝 Easy
1036 腐烂的橘子 rotting-oranges Python 📝 Medium
1039 找到小镇的法官 find-the-town-judge Python 📝 Easy
1041 可以被一步捕获的棋子数 available-captures-for-rook Python 📝 Easy
1044 查找共用字符 find-common-characters Python 📝 Easy
1047 K 次取反后最大化的数组和 maximize-sum-of-array-after-k-negations Python 📝 Easy
1054 十进制整数的反码 complement-of-base-10-integer Python 📝 Easy
1055 总持续时间可被 60 整除的歌曲 pairs-of-songs-with-total-durations-divisible-by-60 Python 📝 Medium
1062 将数组分成和相等的三个部分 partition-array-into-three-parts-with-equal-sum Python 📝 Easy
1071 可被 5 整除的二进制前缀 binary-prefix-divisible-by-5 Python 📝 Easy
1078 删除最外层的括号 remove-outermost-parentheses Python 📝 Easy
1086 除数博弈 divisor-game Python 📝 Easy
1094 距离顺序排列矩阵单元格 matrix-cells-in-distance-order Python 📝 Easy
1095 两地调度 two-city-scheduling Python 📝 Medium
1114 从二叉搜索树到更大和树 binary-search-tree-to-greater-sum-tree Python 📝 Medium
1227 等价多米诺骨牌对的数量 number-of-equivalent-domino-pairs Python 📝 Easy
1236 第 N 个泰波那契数 n-th-tribonacci-number Python 📝 Easy
1238 字母板上的路径 alphabet-board-path Python 📝 Medium
1250 最长公共子序列 longest-common-subsequence Python 📝 Medium
1353 移除字母异位词后的结果数组 find-resultant-array-after-removing-anagrams Python 📝 Easy
2355 不含特殊楼层的最大连续楼层数 maximum-consecutive-floors-without-special-floors Python 📝 Medium
2356 按位与结果大于零的最长组合 largest-combination-with-bitwise-and-greater-than-zero Python 📝 Medium

About

leetcode solutions


Languages

Language:Python 99.4%Language:Go 0.4%Language:JavaScript 0.2%