Leetcode-Solution-All icon indicating copy to clipboard operation
Leetcode-Solution-All copied to clipboard

1000篇通俗易懂且高质量的 LeetCode 解析,动画题解,套路分析,模板分享

简介

在线阅读:负雪明烛的题解网站

大家好,我是负雪明烛,一个用 7 年写了 1000 篇算法题解的程序员。

在之前的算法题写作中,我一直以 CSDN 作为主要发布平台,随着时间流逝,CSDN 已经不能很好地承载多达 1000 篇题解内容的归类展示,而且阅读体验不佳。

为了让自己的文章能够更好地被读者阅读,我做了以下的尝试:

  1. 建立了 Leetcode-Solution-All (本仓库),把近 1000 篇题解都存放在一起。
  2. 上线了在线阅读的网站:负雪明烛的题解网站

本仓库的所有算法题解,都是我在过去 7 年内写的,我在刷题的过程中,每做一道题目都会写一篇题解,经常出现“做题 5 分钟,题解 2 小时”的情况。

写作题解的主要目的是为了记录自己做题的思路,没想到在日积月累的情况下,我竟然写了 1000 道题解,在 CSDN 上获得了 200万 阅读量,在 LeetCode 的题解区也获得了 100 万+ 的访问量。

可以在这里看 写了 1000 篇算法题解是什么体验?

本仓库按照题目顺序,每 100 道题目放在了一个文件夹里,方便读者查找。

持续更新

本仓库的地址是:https://github.com/fuxuemingzhu/Leetcode-Solution-All

欢迎 Star ⭐️!

Alt

目录

1-99

  • 1. Two Sum 两数之和
  • 2. Add Two Numbers 两数相加
  • 3. Longest Substring Without Repeating Characters 无重复字符的最长子串
  • 4. Median of Two Sorted Arrays 寻找两个正序数组的中位数
  • 5. Longest Palindromic Substring 最长回文子串
  • 6. ZigZag Conversion Z 字形变换
  • 7. Reverse Integer 整数反转
  • 8. String to Integer (atoi) 字符串转换整数 (atoi)
  • 9. Palindrome Number 回文数
  • 11. Container With Most Water 盛最多水的容器
  • 12. Integer to Roman 整数转罗马数字
  • 13. Roman to Integer 罗马数字转整数
  • 14. Longest Common Prefix 最长公共前缀
  • 15. 3Sum 三数之和
  • 16. 3Sum Closest 最接近的三数之和
  • 17. Letter Combinations of a Phone Number 电话号码的字母组合
  • 18. 4Sum 四数之和
  • 19. Remove Nth Node From End of List 删除链表的倒数第 N 个结点
  • 20. Valid Parentheses 有效的括号
  • 21. Merge Two Sorted Lists 合并两个有序链表
  • 22. Generate Parentheses 括号生成
  • 23. Merge k Sorted Lists 合并K个升序链表
  • 26. Remove Duplicates from Sorted Array 删除有序数组中的重复项
  • 27. Remove Element 移除元素
  • 28. Implement strStr() 实现 strStr()
  • 31. Next Permutation 下一个排列
  • 33. Search in Rotated Sorted Array 搜索旋转排序数组
  • 34. Find First and Last Position of Element in Sorted Array 在排序数组中查找元素的第一个和最后一个位置
  • 35. Search Insert Position 搜索插入位置
  • 36. Valid Sudoku 有效的数独
  • 38. Count and Say 外观数列
  • 39. Combination Sum 组合总和
  • 40. Combination Sum II 组合总和 II
  • 42. Trapping Rain Water 接雨水
  • 43. Multiply Strings 字符串相乘
  • 45. Jump Game II 跳跃游戏 II
  • 46. Permutations 全排列
  • 47. Permutations II 全排列 II
  • 48. Rotate Image 旋转图像
  • 49. Group Anagrams 字母异位词分组
  • 50. Pow(x, n) Pow(x, n)
  • 51. N-Queens N 皇后
  • 52. N-Queens II N皇后 II
  • 53. Maximum Subarray 最大子序和
  • 54. Spiral Matrix 螺旋矩阵
  • 55. Jump Game 跳跃游戏
  • 56. Merge Intervals 合并区间
  • 58. Length of Last Word 最后一个单词的长度
  • 59. Spiral Matrix II 螺旋矩阵 II
  • 60. Permutation Sequence 排列序列
  • 61. Rotate List 旋转链表
  • 62. Unique Paths 不同路径
  • 63. Unique Paths II 不同路径 II
  • 64. Minimum Path Sum 最小路径和
  • 66. Plus One 加一
  • 67. Add Binary 二进制求和
  • 69. Sqrt(x) Sqrt(x)
  • 70. Climbing Stairs 爬楼梯
  • 71. Simplify Path 简化路径
  • 72. Edit Distance 编辑距离
  • 73. Set Matrix Zeroes 矩阵置零
  • 74. Search a 2D Matrix 搜索二维矩阵
  • 75. Sort Colors 颜色分类
  • 76. Minimum Window Substring 最小覆盖子串
  • 77. Combinations 组合
  • 78. Subsets 子集
  • 79. Word Search 单词搜索
  • 80. Remove Duplicates from Sorted Array II 删除有序数组中的重复项 II
  • 81. Search in Rotated Sorted Array II 搜索旋转排序数组 II
  • 82. Remove Duplicates from Sorted List II 删除排序链表中的重复元素 II
  • 83. Remove Duplicates from Sorted List 删除排序链表中的重复元素
  • 84. Largest Rectangle in Histogram 柱状图中最大的矩形
  • 85. Maximal Rectangle 最大矩形
  • 86. Partition List 分隔链表
  • 87. Scramble String 扰乱字符串
  • 88. Merge Sorted Array 合并两个有序数组
  • 89. Gray Code 格雷编码
  • 90. Subsets II 子集 II
  • 91. Decode Ways 解码方法
  • 92. Reverse Linked List II 反转链表 II
  • 93. Restore IP Addresses 复原 IP 地址
  • 94. Binary Tree Inorder Traversal 二叉树的中序遍历
  • 95. Unique Binary Search Trees II 不同的二叉搜索树 II
  • 96. Unique Binary Search Trees 不同的二叉搜索树
  • 98. Validate Binary Search Tree 验证二叉搜索树
  • 99. Recover Binary Search Tree 恢复二叉搜索树

100-199

  • 100. Same Tree 相同的树
  • 101. Symmetric Tree 对称二叉树
  • 102. Binary Tree Level Order Traversal 二叉树的层序遍历
  • 104. Maximum Depth of Binary Tree 二叉树的最大深度
  • 105. Construct Binary Tree from Preorder and Inorder Traversal 从前序与中序遍历序列构造二叉树
  • 106. Construct Binary Tree from Inorder and Postorder Traversal 从中序与后序遍历序列构造二叉树
  • 107. Binary Tree Level Order Traversal II 二叉树的层序遍历 II
  • 108. Convert Sorted Array to Binary Search Tree 将有序数组转换为二叉搜索树
  • 109. Convert Sorted List to Binary Search Tree 有序链表转换二叉搜索树
  • 111. Minimum Depth of Binary Tree 二叉树的最小深度
  • 112. Path Sum 路径总和
  • 113. Path Sum II 路径总和 II
  • 114. Flatten Binary Tree to Linked List 二叉树展开为链表
  • 115. Distinct Subsequences 不同的子序列
  • 116. Populating Next Right Pointers in Each Node 填充每个节点的下一个右侧节点指针
  • 117. Populating Next Right Pointers in Each Node II 填充每个节点的下一个右侧节点指针 II
  • 118. Pascal's Triangle 杨辉三角
  • 119. Pascal's Triangle II 杨辉三角 II
  • 120. Triangle 三角形最小路径和
  • 121. Best Time to Buy and Sell Stock 买卖股票的最佳时机
  • 122. Best Time to Buy and Sell Stock II 买卖股票的最佳时机 II
  • 123. Best Time to Buy and Sell Stock III 买卖股票的最佳时机 III
  • 124. Binary Tree Maximum Path Sum 二叉树中的最大路径和
  • 125. Valid Palindrome 验证回文串
  • 127. Word Ladder 单词接龙
  • 129. Sum Root to Leaf Numbers 求根节点到叶节点数字之和
  • 131. Palindrome Partitioning 分割回文串
  • 133. Clone Graph 克隆图
  • 136. Single Number 只出现一次的数字
  • 137. Single Number II 只出现一次的数字 II
  • 138. Copy List with Random Pointer 复制带随机指针的链表
  • 139. Word Break 单词拆分
  • 140. Word Break II 单词拆分 II
  • 141. Linked List Cycle 环形链表
  • 142. Linked List Cycle II 环形链表 II
  • 143. Reorder List 重排链表
  • 144. Binary Tree Preorder Traversal 二叉树的前序遍历
  • 145. Binary Tree Postorder Traversal 二叉树的后序遍历
  • 146. LRU Cache LRU 缓存机制
  • 147. Insertion Sort List 对链表进行插入排序
  • 148. Sort List 排序链表
  • 149. Max Points on a Line 直线上最多的点数
  • 150. Evaluate Reverse Polish Notation 逆波兰表达式求值
  • 151. Reverse Words in a String 翻转字符串里的单词
  • 152. Maximum Product Subarray 乘积最大子数组
  • 153. Find Minimum in Rotated Sorted Array 寻找旋转排序数组中的最小值
  • 154. Find Minimum in Rotated Sorted Array II 寻找旋转排序数组中的最小值 II
  • 155. Min Stack 最小栈
  • 156. Binary Tree Upside Down 上下翻转二叉树
  • 157. Read N Characters Given Read4 用 Read4 读取 N 个字符
  • 160. Intersection of Two Linked Lists 相交链表
  • 162. Find Peak Element 寻找峰值
  • 163. Missing Ranges 缺失的区间
  • 165. Compare Version Numbers 比较版本号
  • 166. Fraction to Recurring Decimal 分数到小数
  • 167. Two Sum II - Input Array Is Sorted 两数之和 II - 输入有序数组
  • 168. Excel Sheet Column Title Excel表列名称
  • 169. Majority Element 多数元素
  • 170. Two Sum III - Data structure design 两数之和 III - 数据结构设计
  • 171. Excel Sheet Column Number Excel 表列序号
  • 172. Factorial Trailing Zeroes 阶乘后的零
  • 173. Binary Search Tree Iterator 二叉搜索树迭代器
  • 174. Dungeon Game 地下城游戏
  • 186. Reverse Words in a String II 翻转字符串里的单词 II
  • 187. Repeated DNA Sequences 重复的DNA序列
  • 188. Best Time to Buy and Sell Stock IV 买卖股票的最佳时机 IV
  • 189. Rotate Array 轮转数组
  • 190. Reverse Bits 颠倒二进制位
  • 191. Number of 1 Bits 位1的个数
  • 198. House Robber 打家劫舍
  • 199. Binary Tree Right Side View 二叉树的右视图

200-299

  • 200. Number of Islands 岛屿数量
  • 201. Bitwise AND of Numbers Range 数字范围按位与
  • 202. Happy Number 快乐数
  • 203. Remove Linked List Elements 移除链表元素
  • 204. Count Primes 计数质数
  • 205. Isomorphic Strings 同构字符串
  • 206. Reverse Linked List 反转链表
  • 207. Course Schedule 课程表
  • 208. Implement Trie (Prefix Tree) 实现 Trie (前缀树)
  • 209. Minimum Size Subarray Sum 长度最小的子数组
  • 210. Course Schedule II 课程表 II
  • 211. Design Add and Search Words Data Structure 添加与搜索单词 - 数据结构设计
  • 212. Word Search II 单词搜索 II
  • 213. House Robber II 打家劫舍 II
  • 214. Shortest Palindrome 最短回文串
  • 215. Kth Largest Element in an Array 数组中的第K个最大元素
  • 216. Combination Sum III 组合总和 III
  • 217. Contains Duplicate 存在重复元素
  • 219. Contains Duplicate II 存在重复元素 II
  • 221. Maximal Square 最大正方形
  • 222. Count Complete Tree Nodes 完全二叉树的节点个数
  • 223. Rectangle Area 矩形面积
  • 224. Basic Calculator 基本计算器
  • 225. Implement Stack using Queues 用队列实现栈
  • 226. Invert Binary Tree 翻转二叉树
  • 227. Basic Calculator II 基本计算器 II
  • 228. Summary Ranges 汇总区间
  • 229. Majority Element II 求众数 II
  • 230. Kth Smallest Element in a BST 二叉搜索树中第K小的元素
  • 231. Power of Two 2 的幂
  • 232. Implement Queue using Stacks 用栈实现队列
  • 234. Palindrome Linked List 回文链表
  • 235. Lowest Common Ancestor of a Binary Search Tree 二叉搜索树的最近公共祖先
  • 236. Lowest Common Ancestor of a Binary Tree 二叉树的最近公共祖先
  • 237. Delete Node in a Linked List 删除链表中的节点
  • 238. Product of Array Except Self 除自身以外数组的乘积
  • 239. Sliding Window Maximum 滑动窗口最大值
  • 240. Search a 2D Matrix II 搜索二维矩阵 II
  • 241. Different Ways to Add Parentheses 为运算表达式设计优先级
  • 242. Valid Anagram 有效的字母异位词
  • 243. Shortest Word Distance 最短单词距离
  • 244. Shortest Word Distance II 最短单词距离 II
  • 245. Shortest Word Distance III 最短单词距离 III
  • 246. Strobogrammatic Number 中心对称数
  • 252. Meeting Rooms 会议室
  • 253. Meeting Rooms II 会议室 II
  • 256. Paint House 粉刷房子
  • 257. Binary Tree Paths 二叉树的所有路径
  • 258. Add Digits 各位相加
  • 259. 3Sum Smaller 较小的三数之和
  • 260. Single Number III 只出现一次的数字 III
  • 263. Ugly Number 丑数
  • 264. Ugly Number II 丑数 II
  • 266. Palindrome Permutation 回文排列
  • 268. Missing Number 丢失的数字
  • 270. Closest Binary Search Tree Value 最接近的二叉搜索树值
  • 274. H-Index H 指数
  • 275. H-Index II H 指数 II
  • 276. Paint Fence 栅栏涂色
  • 277. Find the Celebrity 搜寻名人
  • 278. First Bad Version 第一个错误的版本
  • 279. Perfect Squares 完全平方数
  • 280. Wiggle Sort 摆动排序
  • 281. Zigzag Iterator 锯齿迭代器
  • 283. Move Zeroes 移动零
  • 284. Peeking Iterator 窥探迭代器
  • 286. Walls and Gates 墙与门
  • 287. Find the Duplicate Number 寻找重复数
  • 289. Game of Life 生命游戏
  • 290. Word Pattern 单词规律
  • 292. Nim Game Nim 游戏
  • 293. Flip Game 翻转游戏
  • 294. Flip Game II 翻转游戏 II
  • 295. Find Median from Data Stream 数据流的中位数
  • 297. Serialize and Deserialize Binary Tree 二叉树的序列化与反序列化
  • 299. Bulls and Cows 猜数字游戏

300-399

  • 300. Longest Increasing Subsequence 最长递增子序列
  • 303. Range Sum Query - Immutable 区域和检索 - 数组不可变
  • 304. Range Sum Query 2D - Immutable 二维区域和检索 - 矩阵不可变
  • 306. Additive Number 累加数
  • 309. Best Time to Buy and Sell Stock with Cooldown 最佳买卖股票时机含冷冻期
  • 310. Minimum Height Trees 最小高度树
  • 311. Sparse Matrix Multiplication 稀疏矩阵的乘法
  • 312. Burst Balloons 戳气球
  • 316. Remove Duplicate Letters 去除重复字母
  • 318. Maximum Product of Word Lengths 最大单词长度乘积
  • 319. Bulb Switcher 灯泡开关
  • 320. Generalized Abbreviation 列举单词的全部缩写
  • 322. Coin Change 零钱兑换
  • 323. Number of Connected Components in an Undirected Graph 无向图中连通分量的数目
  • 325. Maximum Size Subarray Sum Equals k 和等于 k 的最长子数组长度
  • 326. Power of Three 3的幂
  • 328. Odd Even Linked List 奇偶链表
  • 329. Longest Increasing Path in a Matrix 矩阵中的最长递增路径
  • 331. Verify Preorder Serialization of a Binary Tree 验证二叉树的前序序列化
  • 332. Reconstruct Itinerary 重新安排行程
  • 333. Largest BST Subtree 最大 BST 子树
  • 334. Increasing Triplet Subsequence 递增的三元子序列
  • 336. Palindrome Pairs 回文对
  • 337. House Robber III 打家劫舍 III
  • 338. Counting Bits 比特位计数
  • 339. Nested List Weight Sum 嵌套列表权重和
  • 341. Flatten Nested List Iterator 扁平化嵌套列表迭代器
  • 342. Power of Four 4的幂
  • 343. Integer Break 整数拆分
  • 344. Reverse String 反转字符串
  • 345. Reverse Vowels of a String 反转字符串中的元音字母
  • 346. Moving Average from Data Stream 数据流中的移动平均值
  • 347. Top K Frequent Elements 前 K 个高频元素
  • 349. Intersection of Two Arrays 两个数组的交集
  • 350. Intersection of Two Arrays II 两个数组的交集 II
  • 355. Design Twitter 设计推特
  • 357. Count Numbers with Unique Digits 计算各个位数不同的数字个数
  • 358. Rearrange String k Distance Apart K 距离间隔重排字符串
  • 359. Logger Rate Limiter 日志速率限制器
  • 361. Bomb Enemy 轰炸敌人
  • 362. Design Hit Counter 敲击计数器
  • 363. Max Sum of Rectangle No Larger Than K 矩形区域不超过 K 的最大数值和
  • 364. Nested List Weight Sum II 加权嵌套序列和 II
  • 365. Water and Jug Problem 水壶问题
  • 366. Find Leaves of Binary Tree 寻找二叉树的叶子节点
  • 367. Valid Perfect Square 有效的完全平方数
  • 368. Largest Divisible Subset 最大整除子集
  • 369. Plus One Linked List 给单链表加一
  • 370. Range Addition 区间加法
  • 371. Sum of Two Integers 两整数之和
  • 372. Super Pow 超级次方
  • 373. Find K Pairs with Smallest Sums 查找和最小的K对数字
  • 374. Guess Number Higher or Lower 猜数字大小
  • 375. Guess Number Higher or Lower II 猜数字大小 II
  • 376. Wiggle Subsequence 摆动序列
  • 377. Combination Sum IV 组合总和 Ⅳ
  • 378. Kth Smallest Element in a Sorted Matrix 有序矩阵中第 K 小的元素
  • 379. Design Phone Directory 电话目录管理系统
  • 380. Insert Delete GetRandom O(1) O(1) 时间插入、删除和获取随机元素
  • 382. Linked List Random Node 链表随机节点
  • 383. Ransom Note 赎金信
  • 384. Shuffle an Array 打乱数组
  • 385. Mini Parser 迷你语法分析器
  • 386. Lexicographical Numbers 字典序排数
  • 387. First Unique Character in a String 字符串中的第一个唯一字符
  • 388. Longest Absolute File Path 文件的最长绝对路径
  • 389. Find the Difference 找不同
  • 390. Elimination Game 消除游戏
  • 392. Is Subsequence 判断子序列
  • 393. UTF-8 Validation UTF-8 编码验证
  • 394. Decode String 字符串解码
  • 395. Longest Substring with At Least K Repeating Characters 至少有 K 个重复字符的最长子串
  • 396. Rotate Function 旋转函数
  • 397. Integer Replacement 整数替换
  • 398. Random Pick Index 随机数索引
  • 399. Evaluate Division 除法求值

400-499

  • 400. Nth Digit 第 N 位数字
  • 401. Binary Watch 二进制手表
  • 402. Remove K Digits 移掉 K 位数字
  • 404. Sum of Left Leaves 左叶子之和
  • 405. Convert a Number to Hexadecimal 数字转换为十六进制数
  • 406. Queue Reconstruction by Height 根据身高重建队列
  • 408. Valid Word Abbreviation 有效单词缩写
  • 409. Longest Palindrome 最长回文串
  • 412. Fizz Buzz Fizz Buzz
  • 413. Arithmetic Slices 等差数列划分
  • 414. Third Maximum Number 第三大的数
  • 415. Add Strings 字符串相加
  • 416. Partition Equal Subset Sum 分割等和子集
  • 417. Pacific Atlantic Water Flow 太平洋大西洋水流问题
  • 419. Battleships in a Board 甲板上的战舰
  • 421. Maximum XOR of Two Numbers in an Array 数组中两个数的最大异或值
  • 422. Valid Word Square 有效的单词方块
  • 423. Reconstruct Original Digits from English 从英文中重建数字
  • 424. Longest Repeating Character Replacement 替换后的最长重复字符
  • 426. Convert Binary Search Tree to Sorted Doubly Linked List 将二叉搜索树转化为排序的双向链表
  • 427. Construct Quad Tree 建立四叉树
  • 429. N-ary Tree Level Order Traversal N 叉树的层序遍历
  • 430. Flatten a Multilevel Doubly Linked List 扁平化多级双向链表
  • 433. Minimum Genetic Mutation 最小基因变化
  • 434. Number of Segments in a String 字符串中的单词数
  • 435. Non-overlapping Intervals 无重叠区间
  • 436. Find Right Interval 寻找右区间
  • 437. Path Sum III 路径总和 III
  • 438. Find All Anagrams in a String 找到字符串中所有字母异位词
  • 441. Arranging Coins 排列硬币
  • 442. Find All Duplicates in an Array 数组中重复的数据
  • 443. String Compression 压缩字符串
  • 445. Add Two Numbers II 两数相加 II
  • 447. Number of Boomerangs 回旋镖的数量
  • 448. Find All Numbers Disappeared in an Array 找到所有数组中消失的数字
  • 449. Serialize and Deserialize BST 序列化和反序列化二叉搜索树
  • 450. Delete Node in a BST 删除二叉搜索树中的节点
  • 451. Sort Characters By Frequency 根据字符出现频率排序
  • 452. Minimum Number of Arrows to Burst Balloons 用最少数量的箭引爆气球
  • 453. Minimum Moves to Equal Array Elements 最小操作次数使数组元素相等
  • 454. 4Sum II 四数相加 II
  • 455. Assign Cookies 分发饼干
  • 456. 132 Pattern 132 模式
  • 457. Circular Array Loop 环形数组是否存在循环
  • 458. Poor Pigs 可怜的小猪
  • 459. Repeated Substring Pattern 重复的子字符串
  • 461. Hamming Distance 汉明距离
  • 462. Minimum Moves to Equal Array Elements II 最少移动次数使数组元素相等 II
  • 463. Island Perimeter 岛屿的周长
  • 467. Unique Substrings in Wraparound String 环绕字符串中唯一的子字符串
  • 468. Validate IP Address 验证IP地址
  • 469. Convex Polygon 凸多边形
  • 470. Implement Rand10() Using Rand7() 用 Rand7() 实现 Rand10()
  • 472. Concatenated Words 连接词
  • 473. Matchsticks to Square 火柴拼正方形
  • 474. Ones and Zeroes 一和零
  • 475. Heaters 供暖器
  • 476. Number Complement 数字的补数
  • 477. Total Hamming Distance 汉明距离总和
  • 478. Generate Random Point in a Circle 在圆内随机生成点
  • 479. Largest Palindrome Product 最大回文数乘积
  • 480. Sliding Window Median 滑动窗口中位数
  • 481. Magical String 神奇字符串
  • 482. License Key Formatting 密钥格式化
  • 485. Max Consecutive Ones 最大连续 1 的个数
  • 486. Predict the Winner 预测赢家
  • 487. Max Consecutive Ones II 最大连续1的个数 II
  • 490. The Maze 迷宫
  • 491. Increasing Subsequences 递增子序列
  • 492. Construct the Rectangle 构造矩形
  • 494. Target Sum 目标和
  • 495. Teemo Attacking 提莫攻击
  • 496. Next Greater Element I 下一个更大元素 I
  • 497. Random Point in Non-overlapping Rectangles 非重叠矩形中的随机点
  • 498. Diagonal Traverse 对角线遍历

500-599

  • 500. Keyboard Row 键盘行
  • 501. Find Mode in Binary Search Tree 二叉搜索树中的众数
  • 503. Next Greater Element II 下一个更大元素 II
  • 504. Base 7 七进制数
  • 505. The Maze II 迷宫 II
  • 506. Relative Ranks 相对名次
  • 507. Perfect Number 完美数
  • 508. Most Frequent Subtree Sum 出现次数最多的子树元素和
  • 509. Fibonacci Number 斐波那契数
  • 513. Find Bottom Left Tree Value 找树左下角的值
  • 515. Find Largest Value in Each Tree Row 在每个树行中找最大值
  • 516. Longest Palindromic Subsequence 最长回文子序列
  • 518. Coin Change 2 零钱兑换 II
  • 519. Random Flip Matrix 随机翻转矩阵
  • 520. Detect Capital 检测大写字母
  • 521. Longest Uncommon Subsequence I 最长特殊序列 Ⅰ
  • 522. Longest Uncommon Subsequence II 最长特殊序列 II
  • 525. Contiguous Array 连续数组
  • 526. Beautiful Arrangement 优美的排列
  • 528. Random Pick with Weight 按权重随机选择
  • 529. Minesweeper 扫雷游戏
  • 530. Minimum Absolute Difference in BST 二叉搜索树的最小绝对差
  • 532. K-diff Pairs in an Array 数组中的 k-diff 数对
  • 535. Encode and Decode TinyURL TinyURL 的加密与解密
  • 536. Construct Binary Tree from String 从字符串生成二叉树
  • 537. Complex Number Multiplication 复数乘法
  • 538. Convert BST to Greater Tree 把二叉搜索树转换为累加树
  • 539. Minimum Time Difference 最小时间差
  • 540. Single Element in a Sorted Array 有序数组中的单一元素
  • 541. Reverse String II 反转字符串 II
  • 543. Diameter of Binary Tree 二叉树的直径
  • 544. Output Contest Matches 输出比赛匹配对
  • 547. Number of Provinces 省份数量
  • 548. Split Array with Equal Sum 将数组分割成和相等的子数组
  • 551. Student Attendance Record I 学生出勤记录 I
  • 553. Optimal Division 最优除法
  • 554. Brick Wall 砖墙
  • 555. Split Concatenated Strings 分割连接字符串
  • 556. Next Greater Element III 下一个更大元素 III
  • 557. Reverse Words in a String III 反转字符串中的单词 III
  • 558. Logical OR of Two Binary Grids Represented as Quad-Trees 四叉树交集
  • 559. Maximum Depth of N-ary Tree N 叉树的最大深度
  • 560. Subarray Sum Equals K 和为 K 的子数组
  • 561. Array Partition I 数组拆分 I
  • 563. Binary Tree Tilt 二叉树的坡度
  • 565. Array Nesting 数组嵌套
  • 566. Reshape the Matrix 重塑矩阵
  • 567. Permutation in String 字符串的排列
  • 572. Subtree of Another Tree 另一棵树的子树
  • 575. Distribute Candies 分糖果
  • 576. Out of Boundary Paths 出界的路径数
  • 581. Shortest Unsorted Continuous Subarray 最短无序连续子数组
  • 583. Delete Operation for Two Strings 两个字符串的删除操作
  • 589. N-ary Tree Preorder Traversal N 叉树的前序遍历
  • 590. N-ary Tree Postorder Traversal N 叉树的后序遍历
  • 592. Fraction Addition and Subtraction 分数加减运算
  • 593. Valid Square 有效的正方形
  • 594. Longest Harmonious Subsequence 最长和谐子序列
  • 598. Range Addition II 范围求和 II
  • 599. Minimum Index Sum of Two Lists 两个列表的最小索引总和

600-699

  • 604. Design Compressed String Iterator 迭代压缩字符串
  • 605. Can Place Flowers 种花问题
  • 606. Construct String from Binary Tree 根据二叉树创建字符串
  • 609. Find Duplicate File in System 在系统中查找重复文件
  • 611. Valid Triangle Number 有效三角形的个数
  • 616. Add Bold Tag in String 给字符串添加加粗标签
  • 617. Merge Two Binary Trees 合并二叉树
  • 621. Task Scheduler 任务调度器
  • 622. Design Circular Queue 设计循环队列
  • 623. Add One Row to Tree 在二叉树中增加一行
  • 624. Maximum Distance in Arrays 数组列表中的最大距离
  • 628. Maximum Product of Three Numbers 三个数的最大乘积
  • 632. Smallest Range Covering Elements from K Lists 最小区间
  • 633. Sum of Square Numbers 平方数之和
  • 636. Exclusive Time of Functions 函数的独占时间
  • 637. Average of Levels in Binary Tree 二叉树的层平均值
  • 638. Shopping Offers 大礼包
  • 640. Solve the Equation 求解方程
  • 641. Design Circular Deque 设计循环双端队列
  • 643. Maximum Average Subarray I 子数组最大平均数 I
  • 645. Set Mismatch 错误的集合
  • 646. Maximum Length of Pair Chain 最长数对链
  • 647. Palindromic Substrings 回文子串
  • 648. Replace Words 单词替换
  • 649. Dota2 Senate Dota2 参议院
  • 650. 2 Keys Keyboard 只有两个键的键盘
  • 652. Find Duplicate Subtrees 寻找重复的子树
  • 653. Two Sum IV - Input is a BST 两数之和 IV - 输入 BST
  • 654. Maximum Binary Tree 最大二叉树
  • 655. Print Binary Tree 输出二叉树
  • 657. Robot Return to Origin 机器人能否返回原点
  • 658. Find K Closest Elements 找到 K 个最接近的元素
  • 659. Split Array into Consecutive Subsequences 分割数组为连续子序列
  • 661. Image Smoother 图片平滑器
  • 662. Maximum Width of Binary Tree 二叉树最大宽度
  • 663. Equal Tree Partition 均匀树划分
  • 665. Non-decreasing Array 非递减数列
  • 666. Path Sum IV 路径总和 IV
  • 667. Beautiful Arrangement II 优美的排列 II
  • 669. Trim a Binary Search Tree 修剪二叉搜索树
  • 671. Second Minimum Node In a Binary Tree 二叉树中第二小的节点
  • 672. Bulb Switcher II 灯泡开关 Ⅱ
  • 673. Number of Longest Increasing Subsequence 最长递增子序列的个数
  • 674. Longest Continuous Increasing Subsequence 最长连续递增序列
  • 676. Implement Magic Dictionary 实现一个魔法字典
  • 677. Map Sum Pairs 键值映射
  • 678. Valid Parenthesis String 有效的括号字符串
  • 680. Valid Palindrome II 验证回文字符串 Ⅱ
  • 682. Baseball Game 棒球比赛
  • 684. Redundant Connection 冗余连接
  • 686. Repeated String Match 重复叠加字符串匹配
  • 687. Longest Univalue Path 最长同值路径
  • 688. Knight Probability in Chessboard “马”在棋盘上的概率
  • 689. Maximum Sum of 3 Non-Overlapping Subarrays 三个无重叠子数组的最大和
  • 690. Employee Importance 员工的重要性
  • 692. Top K Frequent Words 前K个高频单词
  • 693. Binary Number with Alternating Bits 交替位二进制数
  • 694. Number of Distinct Islands 不同岛屿的数量
  • 695. Max Area of Island 岛屿的最大面积
  • 696. Count Binary Substrings 计数二进制子串
  • 697. Degree of an Array 数组的度
  • 698. Partition to K Equal Sum Subsets 划分为k个相等的子集

700-799

  • 700. Search in a Binary Search Tree 二叉搜索树中的搜索
  • 701. Insert into a Binary Search Tree 二叉搜索树中的插入操作
  • 702. Search in a Sorted Array of Unknown Size 搜索长度未知的有序数组
  • 703. Kth Largest Element in a Stream 数据流中的第 K 大元素
  • 704. Binary Search 二分查找
  • 705. Design HashSet 设计哈希集合
  • 706. Design HashMap 设计哈希映射
  • 707. Design Linked List 设计链表
  • 709. To Lower Case 转换成小写字母
  • 712. Minimum ASCII Delete Sum for Two Strings 两个字符串的最小ASCII删除和
  • 713. Subarray Product Less Than K 乘积小于K的子数组
  • 714. Best Time to Buy and Sell Stock with Transaction Fee 买卖股票的最佳时机含手续费
  • 716. Max Stack 最大栈
  • 717. 1-bit and 2-bit Characters 1比特与2比特字符
  • 718. Maximum Length of Repeated Subarray 最长重复子数组
  • 720. Longest Word in Dictionary 词典中最长的单词
  • 721. Accounts Merge 账户合并
  • 722. Remove Comments 删除注释
  • 723. Candy Crush 粉碎糖果
  • 724. Find Pivot Index 寻找数组的中心下标
  • 725. Split Linked List in Parts 分隔链表
  • 726. Number of Atoms 原子的数量
  • 728. Self Dividing Numbers 自除数
  • 729. My Calendar I 我的日程安排表 I
  • 730. Count Different Palindromic Subsequences 统计不同回文子序列
  • 731. My Calendar II 我的日程安排表 II
  • 732. My Calendar III 我的日程安排表 III
  • 733. Flood Fill 图像渲染
  • 734. Sentence Similarity 句子相似性
  • 735. Asteroid Collision 行星碰撞
  • 738. Monotone Increasing Digits 单调递增的数字
  • 739. Daily Temperatures 每日温度
  • 743. Network Delay Time 网络延迟时间
  • 744. Find Smallest Letter Greater Than Target 寻找比目标字母大的最小字母
  • 746. Min Cost Climbing Stairs 使用最小花费爬楼梯
  • 747. Largest Number At Least Twice of Others 至少是其他数字两倍的最大数
  • 748. Shortest Completing Word 最短补全词
  • 750. Number Of Corner Rectangles 角矩形的数量
  • 752. Open the Lock 打开转盘锁
  • 753. Cracking the Safe 破解保险箱
  • 754. Reach a Number 到达终点数字
  • 756. Pyramid Transition Matrix 金字塔转换矩阵
  • 758. Bold Words in String 字符串中的加粗单词
  • 760. Find Anagram Mappings 找出变位映射
  • 761. Special Binary String 特殊的二进制序列
  • 762. Prime Number of Set Bits in Binary Representation 二进制表示中质数个计算置位
  • 763. Partition Labels 划分字母区间
  • 764. Largest Plus Sign 最大加号标志
  • 765. Couples Holding Hands 情侣牵手
  • 766. Toeplitz Matrix 托普利茨矩阵
  • 767. Reorganize String 重构字符串
  • 768. Max Chunks To Make Sorted II 最多能完成排序的块 II
  • 769. Max Chunks To Make Sorted 最多能完成排序的块
  • 771. Jewels and Stones 宝石与石头
  • 773. Sliding Puzzle 滑动谜题
  • 775. Global and Local Inversions 全局倒置与局部倒置
  • 777. Swap Adjacent in LR String 在LR字符串中交换相邻字符
  • 778. Swim in Rising Water 水位上升的泳池中游泳
  • 779. K-th Symbol in Grammar 第K个语法符号
  • 781. Rabbits in Forest 森林中的兔子
  • 783. Minimum Distance Between BST Nodes 二叉搜索树节点最小距离
  • 784. Letter Case Permutation 字母大小写全排列
  • 785. Is Graph Bipartite? 判断二分图
  • 787. Cheapest Flights Within K Stops K 站中转内最便宜的航班
  • 788. Rotated Digits 旋转数字
  • 789. Escape The Ghosts 逃脱阻碍者
  • 790. Domino and Tromino Tiling 多米诺和托米诺平铺
  • 791. Custom Sort String 自定义字符串排序
  • 792. Number of Matching Subsequences 匹配子序列的单词数
  • 794. Valid Tic-Tac-Toe State 有效的井字游戏
  • 795. Number of Subarrays with Bounded Maximum 区间子数组个数
  • 796. Rotate String 旋转字符串
  • 797. All Paths From Source to Target 所有可能的路径
  • 799. Champagne Tower 香槟塔

800-899

  • 800. Similar RGB Color 相似 RGB 颜色
  • 801. Minimum Swaps To Make Sequences Increasing 使序列递增的最小交换次数
  • 802. Find Eventual Safe States 找到最终的安全状态
  • 804. Unique Morse Code Words 唯一摩尔斯密码词
  • 806. Number of Lines To Write String 写字符串需要的行数
  • 807. Max Increase to Keep City Skyline 保持城市天际线
  • 808. Soup Servings 分汤
  • 809. Expressive Words 情感丰富的文字
  • 811. Subdomain Visit Count 子域名访问计数
  • 812. Largest Triangle Area 最大三角形面积
  • 813. Largest Sum of Averages 最大平均值和的分组
  • 814. Binary Tree Pruning 二叉树剪枝
  • 816. Ambiguous Coordinates 模糊坐标
  • 817. Linked List Components 链表组件
  • 819. Most Common Word 最常见的单词
  • 820. Short Encoding of Words 单词的压缩编码
  • 821. Shortest Distance to a Character 字符的最短距离
  • 822. Card Flipping Game 翻转卡片游戏
  • 823. Binary Trees With Factors 带因子的二叉树
  • 824. Goat Latin 山羊拉丁文
  • 825. Friends Of Appropriate Ages 适龄的朋友
  • 826. Most Profit Assigning Work 安排工作以达到最大收益
  • 829. Consecutive Numbers Sum 连续整数求和
  • 830. Positions of Large Groups 较大分组的位置
  • 831. Masking Personal Information 隐藏个人信息
  • 832. Flipping an Image 翻转图像
  • 833. Find And Replace in String 字符串中的查找与替换
  • 835. Image Overlap 图像重叠
  • 836. Rectangle Overlap 矩形重叠
  • 837. New 21 Game 新21点
  • 838. Push Dominoes 推多米诺
  • 839. Similar String Groups 相似字符串组
  • 840. Magic Squares In Grid 矩阵中的幻方
  • 841. Keys and Rooms 钥匙和房间
  • 842. Split Array into Fibonacci Sequence 将数组拆分成斐波那契序列
  • 844. Backspace String Compare 比较含退格的字符串
  • 845. Longest Mountain in Array 数组中的最长山脉
  • 846. Hand of Straights 一手顺子
  • 847. Shortest Path Visiting All Nodes 访问所有节点的最短路径
  • 848. Shifting Letters 字母移位
  • 849. Maximize Distance to Closest Person 到最近的人的最大距离
  • 851. Loud and Rich 喧闹和富有
  • 852. Peak Index in a Mountain Array 山脉数组的峰顶索引
  • 853. Car Fleet 车队
  • 855. Exam Room 考场就座
  • 856. Score of Parentheses 括号的分数
  • 857. Minimum Cost to Hire K Workers 雇佣 K 名工人的最低成本
  • 858. Mirror Reflection 镜面反射
  • 859. Buddy Strings 亲密字符串
  • 860. Lemonade Change 柠檬水找零
  • 861. Score After Flipping Matrix 翻转矩阵后的得分
  • 862. Shortest Subarray with Sum at Least K 和至少为 K 的最短子数组
  • 863. All Nodes Distance K in Binary Tree 二叉树中所有距离为 K 的结点
  • 865. Smallest Subtree with all the Deepest Nodes 具有所有最深节点的最小子树
  • 867. Transpose Matrix 转置矩阵
  • 868. Binary Gap 二进制间距
  • 869. Reordered Power of 2 重新排序得到 2 的幂
  • 870. Advantage Shuffle 优势洗牌
  • 871. Minimum Number of Refueling Stops 最低加油次数
  • 872. Leaf-Similar Trees 叶子相似的树
  • 873. Length of Longest Fibonacci Subsequence 最长的斐波那契子序列的长度
  • 874. Walking Robot Simulation 模拟行走机器人
  • 875. Koko Eating Bananas 爱吃香蕉的珂珂
  • 876. Middle of the Linked List 链表的中间结点
  • 877. Stone Game 石子游戏
  • 880. Decoded String at Index 索引处的解码字符串
  • 881. Boats to Save People 救生艇
  • 883. Projection Area of 3D Shapes 三维形体投影面积
  • 884. Uncommon Words from Two Sentences 两句话中的不常见单词
  • 885. Spiral Matrix III 螺旋矩阵 III
  • 886. Possible Bipartition 可能的二分法
  • 887. Super Egg Drop 鸡蛋掉落
  • 888. Fair Candy Swap 公平的糖果棒交换
  • 889. Construct Binary Tree from Preorder and Postorder Traversal 根据前序和后序遍历构造二叉树
  • 890. Find and Replace Pattern 查找和替换模式
  • 892. Surface Area of 3D Shapes 三维形体的表面积
  • 893. Groups of Special-Equivalent Strings 特殊等价字符串组
  • 894. All Possible Full Binary Trees 所有可能的满二叉树
  • 895. Maximum Frequency Stack 最大频率栈
  • 896. Monotonic Array 单调数列
  • 897. Increasing Order Search Tree 递增顺序搜索树
  • 898. Bitwise ORs of Subarrays 子数组按位或操作
  • 899. Orderly Queue 有序队列

900-999

  • 900. RLE Iterator RLE 迭代器
  • 901. Online Stock Span 股票价格跨度
  • 904. Fruit Into Baskets 水果成篮
  • 905. Sort Array By Parity 按奇偶排序数组
  • 906. Super Palindromes 超级回文数
  • 908. Smallest Range I 最小差值 I
  • 910. Smallest Range II 最小差值 II
  • 911. Online Election 在线选举
  • 912. Sort an Array 排序数组
  • 913. Cat and Mouse 猫和老鼠
  • 914. X of a Kind in a Deck of Cards 卡牌分组
  • 915. Partition Array into Disjoint Intervals 分割数组
  • 916. Word Subsets 单词子集
  • 917. Reverse Only Letters 仅仅反转字母
  • 919. Complete Binary Tree Inserter 完全二叉树插入器
  • 921. Minimum Add to Make Parentheses Valid 使括号有效的最少添加
  • 922. Sort Array By Parity II 按奇偶排序数组 II
  • 923. 3Sum With Multiplicity 三数之和的多种可能
  • 925. Long Pressed Name 长按键入
  • 926. Flip String to Monotone Increasing 将字符串翻转到单调递增
  • 929. Unique Email Addresses 独特的电子邮件地址
  • 930. Binary Subarrays With Sum 和相同的二元子数组
  • 931. Minimum Falling Path Sum 下降路径最小和
  • 932. Beautiful Array 漂亮数组
  • 933. Number of Recent Calls 最近的请求次数
  • 934. Shortest Bridge 最短的桥
  • 935. Knight Dialer 骑士拨号器
  • 937. Reorder Data in Log Files 重新排列日志文件
  • 938. Range Sum of BST 二叉搜索树的范围和
  • 939. Minimum Area Rectangle 最小面积矩形
  • 940. Distinct Subsequences II 不同的子序列 II
  • 941. Valid Mountain Array 有效的山脉数组
  • 942. DI String Match 增减字符串匹配
  • 944. Delete Columns to Make Sorted 删列造序
  • 945. Minimum Increment to Make Array Unique 使数组唯一的最小增量
  • 946. Validate Stack Sequences 验证栈序列
  • 947. Most Stones Removed with Same Row or Column 移除最多的同行或同列石头
  • 948. Bag of Tokens 令牌放置
  • 949. Largest Time for Given Digits 给定数字能组成的最大时间
  • 950. Reveal Cards In Increasing Order 按递增顺序显示卡牌
  • 951. Flip Equivalent Binary Trees 翻转等价二叉树
  • 952. Largest Component Size by Common Factor 按公因数计算最大组件大小
  • 953. Verifying an Alien Dictionary 验证外星语词典
  • 954. Array of Doubled Pairs 二倍数对数组
  • 957. Prison Cells After N Days N 天后的牢房
  • 958. Check Completeness of a Binary Tree 二叉树的完全性检验
  • 959. Regions Cut By Slashes 由斜杠划分区域
  • 961. N-Repeated Element in Size 2N Array 在长度 2N 的数组中找出重复 N 次的元素
  • 962. Maximum Width Ramp 最大宽度坡
  • 963. Minimum Area Rectangle II 最小面积矩形 II
  • 965. Univalued Binary Tree 单值二叉树
  • 966. Vowel Spellchecker 元音拼写检查器
  • 967. Numbers With Same Consecutive Differences 连续差相同的数字
  • 968. Binary Tree Cameras 监控二叉树
  • 969. Pancake Sorting 煎饼排序
  • 970. Powerful Integers 强整数
  • 971. Flip Binary Tree To Match Preorder Traversal 翻转二叉树以匹配先序遍历
  • 973. K Closest Points to Origin 最接近原点的 K 个点
  • 974. Subarray Sums Divisible by K 和可被 K 整除的子数组
  • 975. Odd Even Jump 奇偶跳
  • 976. Largest Perimeter Triangle 三角形的最大周长
  • 977. Squares of a Sorted Array 有序数组的平方
  • 978. Longest Turbulent Subarray 最长湍流子数组
  • 979. Distribute Coins in Binary Tree 在二叉树中分配硬币
  • 980. Unique Paths III 不同路径 III
  • 981. Time Based Key-Value Store 基于时间的键值存储
  • 982. Triples with Bitwise AND Equal To Zero 按位与为零的三元组
  • 983. Minimum Cost For Tickets 最低票价
  • 984. String Without AAA or BBB 不含 AAA 或 BBB 的字符串
  • 985. Sum of Even Numbers After Queries 查询后的偶数和
  • 986. Interval List Intersections 区间列表的交集
  • 987. Vertical Order Traversal of a Binary Tree 二叉树的垂序遍历
  • 988. Smallest String Starting From Leaf 从叶结点开始的最小字符串
  • 989. Add to Array-Form of Integer 数组形式的整数加法
  • 990. Satisfiability of Equality Equations 等式方程的可满足性
  • 991. Broken Calculator 坏了的计算器
  • 993. Cousins in Binary Tree 二叉树的堂兄弟节点
  • 994. Rotting Oranges 腐烂的橘子
  • 996. Number of Squareful Arrays 正方形数组的数目
  • 997. Find the Town Judge 找到小镇的法官
  • 998. Maximum Binary Tree II 最大二叉树 II
  • 999. Available Captures for Rook 可以被一步捕获的棋子数

1000-1099

  • 1001. Grid Illumination 网格照明
  • 1002. Find Common Characters 查找共用字符
  • 1003. Check If Word Is Valid After Substitutions 检查替换后的词是否有效
  • 1004. Max Consecutive Ones III 最大连续1的个数 III
  • 1005. Maximize Sum Of Array After K Negations K 次取反后最大化的数组和
  • 1006. Clumsy Factorial 笨阶乘
  • 1007. Minimum Domino Rotations For Equal Row 行相等的最少多米诺旋转
  • 1008. Construct Binary Search Tree from Preorder Traversal 前序遍历构造二叉搜索树
  • 1012. Numbers With Repeated Digits 至少有 1 位重复的数字
  • 1013. Partition Array Into Three Parts With Equal Sum 将数组分成和相等的三个部分
  • 1014. Best Sightseeing Pair 最佳观光组合
  • 1018. Binary Prefix Divisible By 5 可被 5 整除的二进制前缀
  • 1019. Next Greater Node In Linked List 链表中的下一个更大节点
  • 1020. Number of Enclaves 飞地的数量
  • 1021. Remove Outermost Parentheses 删除最外层的括号
  • 1022. Sum of Root To Leaf Binary Numbers 从根到叶的二进制数之和
  • 1023. Camelcase Matching 驼峰式匹配
  • 1024. Video Stitching 视频拼接
  • 1025. Divisor Game 除数博弈
  • 1029. Two City Scheduling 两地调度
  • 1030. Matrix Cells in Distance Order 距离顺序排列矩阵单元格
  • 1033. Moving Stones Until Consecutive 移动石子直到连续
  • 1037. Valid Boomerang 有效的回旋镖
  • 1041. Robot Bounded In Circle 困于环中的机器人
  • 1042. Flower Planting With No Adjacent 不邻接植花
  • 1046. Last Stone Weight 最后一块石头的重量
  • 1047. Remove All Adjacent Duplicates In String 删除字符串中的所有相邻重复项
  • 1051. Height Checker 高度检查器
  • 1056. Confusing Number 易混淆数
  • 1060. Missing Element in Sorted Array 有序数组中的缺失元素
  • 1064. Fixed Point 不动点
  • 1065. Index Pairs of a String 字符串的索引对
  • 1071. Greatest Common Divisor of Strings 字符串的最大公因子
  • 1079. Letter Tile Possibilities 活字印刷
  • 1085. Sum of Digits in the Minimum Number 最小元素各数位之和
  • 1086. High Five 前五科的均分
  • 1094. Car Pooling 拼车
  • 1095. Find in Mountain Array 山脉数组中查找目标值
  • 1099. Two Sum Less Than K 小于 K 的两数之和

1100-1199

  • 1101. The Earliest Moment When Everyone Become Friends 彼此熟识的最早时间
  • 1102. Path With Maximum Minimum Value 得分最高的路径
  • 1110. Delete Nodes And Return Forest 删点成林
  • 1111. Maximum Nesting Depth of Two Valid Parentheses Strings 有效括号的嵌套深度
  • 1114. Print in Order 按序打印
  • 1118. Number of Days in a Month 一月有多少天
  • 1119. Remove Vowels from a String 删去字符串中的元音
  • 1120. Maximum Average Subtree 子树的最大平均值
  • 1128. Number of Equivalent Domino Pairs 等价多米诺骨牌对的数量
  • 1133. Largest Unique Number 最大唯一数
  • 1134. Armstrong Number 阿姆斯特朗数
  • 1135. Connecting Cities With Minimum Cost 最低成本联通所有城市
  • 1137. N-th Tribonacci Number 第 N 个泰波那契数
  • 1150. Check If a Number Is Majority Element in a Sorted Array 检查一个数是否在数组中占绝大多数
  • 1151. Minimum Swaps to Group All 1's Together 最少交换次数来组合所有的 1
  • 1154. Day of the Year 一年中的第几天
  • 1160. Find Words That Can Be Formed by Characters 拼写单词
  • 1161. Maximum Level Sum of a Binary Tree 最大层内元素和
  • 1162. As Far from Land as Possible 地图分析
  • 1165. Single-Row Keyboard 单行键盘
  • 1166. Design File System 设计文件系统
  • 1167. Minimum Cost to Connect Sticks 连接棒材的最低费用
  • 1170. Compare Strings by Frequency of the Smallest Character 比较字符串最小字母出现频次
  • 1171. Remove Zero Sum Consecutive Nodes from Linked List 从链表中删去总和值为零的连续节点
  • 1180. Count Substrings with Only One Distinct Letter 统计只含单一字母的子串
  • 1181. Before and After Puzzle 前后拼接
  • 1182. Shortest Distance to Target Color 与目标颜色间的最短距离
  • 1185. Day of the Week 一周中的第几天

1200-1299

  • 1200. Minimum Absolute Difference 最小绝对差
  • 1208. Get Equal Substrings Within Budget 尽可能使字符串相等
  • 1221. Split a String in Balanced Strings 分割平衡字符串
  • 1222. Queens That Can Attack the King 可以攻击国王的皇后

1300-1399

  • 1305. All Elements in Two Binary Search Trees 两棵二叉搜索树中的所有元素
  • 1399. Count Largest Group 统计最大组的数目

1400-1499

  • 1400. Construct K Palindrome Strings 构造 K 个回文字符串
  • 1401. Circle and Rectangle Overlapping 圆和矩形是否有重叠
  • 1402. Reducing Dishes 做菜顺序
  • 1403. Minimum Subsequence in Non-Increasing Order 非递增顺序的最小子序列
  • 1404. Number of Steps to Reduce a Number in Binary Representation to One 将二进制表示减到 1 的步骤数
  • 1405. Longest Happy String 最长快乐字符串
  • 1408. String Matching in an Array 数组中的字符串匹配
  • 1409. Queries on a Permutation With Key 查询带键的排列
  • 1410. HTML Entity Parser HTML 实体解析器
  • 1413. Minimum Value to Get Positive Step by Step Sum 逐步求和得到正数的最小值
  • 1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K 和为 K 的最少斐波那契数字数目
  • 1415. The k-th Lexicographical String of All Happy Strings of Length n 长度为 n 的开心字符串中字典序第 k 小的字符串
  • 1417. Reformat The String 重新格式化字符串
  • 1418. Display Table of Food Orders in a Restaurant 点菜展示表
  • 1419. Minimum Number of Frogs Croaking 数青蛙
  • 1423. Maximum Points You Can Obtain from Cards 可获得的最大点数
  • 1431. Kids With the Greatest Number of Candies 拥有最多糖果的孩子
  • 1432. Max Difference You Can Get From Changing an Integer 改变一个整数能得到的最大差值
  • 1433. Check If a String Can Break Another String 检查一个字符串是否可以打破另一个字符串
  • 1436. Destination City 旅行终点站
  • 1437. Check If All 1's Are at Least Length K Places Away 是否所有 1 都至少相隔 k 个元素
  • 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit 绝对差不超过限制的最长连续子数组
  • 1460. Make Two Arrays Equal by Reversing Sub-arrays 通过翻转子数组使两个数组相等
  • 1461. Check If a String Contains All Binary Codes of Size K 检查一个字符串是否包含所有长度为 K 的二进制子串
  • 1462. Course Schedule IV 课程表 IV
  • 1464. Maximum Product of Two Elements in an Array 数组中两元素的最大乘积
  • 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts 切割后面积最大的蛋糕
  • 1466. Reorder Routes to Make All Paths Lead to the City Zero 重新规划路线
  • 1470. Shuffle the Array 重新排列数组
  • 1471. The k Strongest Values in an Array 数组中的 k 个最强值
  • 1472. Design Browser History 设计浏览器历史记录

1500-1599

  • 1579. Remove Max Number of Edges to Keep Graph Fully Traversable 保证图可完全遍历

1600-1699

  • 1631. Path With Minimum Effort 最小体力消耗路径

1700-1799

  • 1768. Merge Strings Alternately 交替合并字符串
  • 1769. Minimum Number of Operations to Move All Balls to Each Box 移动所有球到每个盒子所需的最小操作数

1800-1899

  • 1823. Find the Winner of the Circular Game 找出游戏的获胜者