File tree
14,739 files changed
+786818
-195052
lines changed- .github
- workflows
- .husky
- _
- basic/sorting
- BubbleSort
- HeapSort
- InsertionSort
- MergeSort
- QuickSort
- SelectionSort
- ShellSort
- docs-en
- intro
- javascripts
- docs
- intro
- javascripts
- images
- lcci
- 01.01.Is Unique
- 01.02.Check Permutation
- 01.03.String to URL
- 01.04.Palindrome Permutation
- 01.05.One Away
- 01.06.Compress String
- 01.07.Rotate Matrix
- 01.08.Zero Matrix
- 01.09.String Rotation
- 02.01.Remove Duplicate Node
- 02.02.Kth Node From End of List
- 02.03.Delete Middle Node
- 02.04.Partition List
- 02.05.Sum Lists
- 02.06.Palindrome Linked List
- 02.07.Intersection of Two Linked Lists
- 02.08.Linked List Cycle
- 03.01.Three in One
- 03.02.Min Stack
- 03.03.Stack of Plates
- 03.04.Implement Queue using Stacks
- 03.05.Sort of Stacks
- 03.06.Animal Shelter
- 04.01.Route Between Nodes
- 04.02.Minimum Height Tree
- 04.03.List of Depth
- 04.04.Check Balance
- 04.05.Legal Binary Search Tree
- 04.06.Successor
- 04.08.First Common Ancestor
- 04.09.BST Sequences
- 04.10.Check SubTree
- 04.12.Paths with Sum
- 05.01.Insert Into Bits
- 05.02.Binary Number to String
- 05.03.Reverse Bits
- 05.04.Closed Number
- 05.06.Convert Integer
- 05.07.Exchange
- 05.08.Draw Line
- 08.01.Three Steps Problem
- 08.02.Robot in a Grid
- 08.03.Magic Index
- 08.04.Power Set
- 08.05.Recursive Mulitply
- 08.06.Hanota
- 08.07.Permutation I
- 08.08.Permutation II
- 08.09.Bracket
- 08.10.Color Fill
- 08.11.Coin
- 08.12.Eight Queens
- 08.13.Pile Box
- 08.14.Boolean Evaluation
- 10.01.Sorted Merge
- 10.02.Group Anagrams
- 10.03.Search Rotate Array
- 10.05.Sparse Array Search
- 10.09.Sorted Matrix Search
- 10.10.Rank from Stream
- 10.11.Peaks and Valleys
- 16.01.Swap Numbers
- 16.02.Words Frequency
- 16.03.Intersection
- 16.04.Tic-Tac-Toe
- 16.05.Factorial Zeros
- 16.06.Smallest Difference
- 16.07.Maximum
- 16.08.English Int
- 16.09.Operations
- 16.10.Living People
- 16.11.Diving Board
- 16.13.Bisect Squares
- 16.14.Best Line
- 16.15.Master Mind
- 16.16.Sub Sort
- 16.17.Contiguous Sequence
- 16.18.Pattern Matching
- 16.19.Pond Sizes
- 16.20.T9
- 16.21.Sum Swap
- 16.22.Langtons Ant
- 16.24.Pairs With Sum
- 16.25.LRU Cache
- 16.26.Calculator
- 17.01.Add Without Plus
- 17.04.Missing Number
- 17.05.Find Longest Subarray
- 17.06.Number Of 2s In Range
- 17.07.Baby Names
- 17.08.Circus Tower
- 17.09.Get Kth Magic Number
- 17.10.Find Majority Element
- 17.11.Find Closest
- 17.12.BiNode
- 17.13.Re-Space
- 17.14.Smallest K
- 17.15.Longest Word
- 17.16.The Masseuse
- 17.17.Multi Search
- 17.18.Shortest Supersequence
- 17.19.Missing Two
- 17.20.Continuous Median
- 17.21.Volume of Histogram
- 17.22.Word Transformer
- 17.23.Max Black Square
- 17.24.Max Submatrix
- 17.25.Word Rectangle
- 17.26.Sparse Similarity
- lcof2
- 剑指 Offer II 001. 整数除法
- 剑指 Offer II 002. 二进制加法
- 剑指 Offer II 003. 前 n 个数字二进制中 1 的个数
- 剑指 Offer II 004. 只出现一次的数字
- 剑指 Offer II 005. 单词长度的最大乘积
- 剑指 Offer II 006. 排序数组中两个数字之和
- 剑指 Offer II 007. 数组中和为 0 的三个数
- 剑指 Offer II 008. 和大于等于 target 的最短子数组
- 剑指 Offer II 009. 乘积小于 K 的子数组
- 剑指 Offer II 010. 和为 k 的子数组
- 剑指 Offer II 011. 0 和 1 个数相同的子数组
- 剑指 Offer II 012. 左右两边子数组的和相等
- 剑指 Offer II 013. 二维子矩阵的和
- 剑指 Offer II 014. 字符串中的变位词
- 剑指 Offer II 015. 字符串中的所有变位词
- 剑指 Offer II 016. 不含重复字符的最长子字符串
- 剑指 Offer II 017. 含有所有字符的最短字符串
- 剑指 Offer II 018. 有效的回文
- 剑指 Offer II 019. 最多删除一个字符得到回文
- 剑指 Offer II 020. 回文子字符串的个数
- 剑指 Offer II 021. 删除链表的倒数第 n 个结点
- 剑指 Offer II 022. 链表中环的入口节点
- 剑指 Offer II 023. 两个链表的第一个重合节点
- 剑指 Offer II 024. 反转链表
- 剑指 Offer II 025. 链表中的两数相加
- 剑指 Offer II 026. 重排链表
- 剑指 Offer II 027. 回文链表
- 剑指 Offer II 028. 展平多级双向链表
- 剑指 Offer II 029. 排序的循环链表
- 剑指 Offer II 030. 插入、删除和随机访问都是 O(1) 的容器
- 剑指 Offer II 031. 最近最少使用缓存
- 剑指 Offer II 032. 有效的变位词
- 剑指 Offer II 033. 变位词组
- 剑指 Offer II 034. 外星语言是否排序
- 剑指 Offer II 035. 最小时间差
- 剑指 Offer II 036. 后缀表达式
- 剑指 Offer II 037. 小行星碰撞
- 剑指 Offer II 038. 每日温度
- 剑指 Offer II 039. 直方图最大矩形面积
- 剑指 Offer II 040. 矩阵中最大的矩形
- 剑指 Offer II 041. 滑动窗口的平均值
- 剑指 Offer II 042. 最近请求次数
- 剑指 Offer II 043. 往完全二叉树添加节点
- 剑指 Offer II 044. 二叉树每层的最大值
- 剑指 Offer II 045. 二叉树最底层最左边的值
- 剑指 Offer II 046. 二叉树的右侧视图
- 剑指 Offer II 047. 二叉树剪枝
- 剑指 Offer II 048. 序列化与反序列化二叉树
- 剑指 Offer II 049. 从根节点到叶节点的路径数字之和
- 剑指 Offer II 050. 向下的路径节点之和
- 剑指 Offer II 051. 节点之和最大的路径
- 剑指 Offer II 052. 展平二叉搜索树
- 剑指 Offer II 053. 二叉搜索树中的中序后继
- 剑指 Offer II 054. 所有大于等于节点的值之和
- 剑指 Offer II 055. 二叉搜索树迭代器
- 剑指 Offer II 056. 二叉搜索树中两个节点之和
- 剑指 Offer II 057. 值和下标之差都在给定的范围内
- 剑指 Offer II 058. 日程表
- 剑指 Offer II 059. 数据流的第 K 大数值
- 剑指 Offer II 060. 出现频率最高的 k 个数字
- 剑指 Offer II 061. 和最小的 k 个数对
- 剑指 Offer II 062. 实现前缀树
- 剑指 Offer II 063. 替换单词
- 剑指 Offer II 064. 神奇的字典
- 剑指 Offer II 065. 最短的单词编码
- 剑指 Offer II 066. 单词之和
- 剑指 Offer II 067. 最大的异或
- 剑指 Offer II 068. 查找插入位置
- 剑指 Offer II 069. 山峰数组的顶部
- 剑指 Offer II 070. 排序数组中只出现一次的数字
- 剑指 Offer II 071. 按权重生成随机数
- 剑指 Offer II 072. 求平方根
- 剑指 Offer II 073. 狒狒吃香蕉
- 剑指 Offer II 074. 合并区间
- 剑指 Offer II 075. 数组相对排序
- 剑指 Offer II 076. 数组中的第 k 大的数字
- 剑指 Offer II 077. 链表排序
- 剑指 Offer II 078. 合并排序链表
- 剑指 Offer II 079. 所有子集
- 剑指 Offer II 080. 含有 k 个元素的组合
- 剑指 Offer II 081. 允许重复选择元素的组合
- 剑指 Offer II 082. 含有重复元素集合的组合
- 剑指 Offer II 083. 没有重复元素集合的全排列
- 剑指 Offer II 084. 含有重复元素集合的全排列
- 剑指 Offer II 085. 生成匹配的括号
- 剑指 Offer II 086. 分割回文子字符串
- 剑指 Offer II 087. 复原 IP
- 剑指 Offer II 088. 爬楼梯的最少成本
- 剑指 Offer II 089. 房屋偷盗
- 剑指 Offer II 090. 环形房屋偷盗
- 剑指 Offer II 091. 粉刷房子
- 剑指 Offer II 092. 翻转字符
- 剑指 Offer II 093. 最长斐波那契数列
- 剑指 Offer II 094. 最少回文分割
- 剑指 Offer II 095. 最长公共子序列
- 剑指 Offer II 096. 字符串交织
- 剑指 Offer II 097. 子序列的数目
- 剑指 Offer II 098. 路径的数目
- 剑指 Offer II 099. 最小路径之和
- 剑指 Offer II 100. 三角形中最小路径之和
- 剑指 Offer II 101. 分割等和子串
- 剑指 Offer II 102. 加减的目标值
- 剑指 Offer II 103. 最少的硬币数目
- 剑指 Offer II 104. 排列的数目
- 剑指 Offer II 105. 岛屿的最大面积
- 剑指 Offer II 106. 二分图
- 剑指 Offer II 107. 矩阵中的距离
- 剑指 Offer II 108. 单词演变
- 剑指 Offer II 109. 开密码锁
- 剑指 Offer II 110. 所有路径
- 剑指 Offer II 111. 计算除法
- 剑指 Offer II 112. 最长递增路径
- 剑指 Offer II 113. 课程顺序
- 剑指 Offer II 114. 外星文字典
- 剑指 Offer II 115. 重建序列
- 剑指 Offer II 116. 朋友圈
- 剑指 Offer II 117. 相似的字符串
- 剑指 Offer II 118. 多余的边
- 剑指 Offer II 119. 最长连续序列
- lcof
- 面试题03. 数组中重复的数字
- 面试题04. 二维数组中的查找
- 面试题05. 替换空格
- 面试题06. 从尾到头打印链表
- 面试题07. 重建二叉树
- 面试题09. 用两个栈实现队列
- 面试题10- I. 斐波那契数列
- 面试题10- II. 青蛙跳台阶问题
- 面试题11. 旋转数组的最小数字
- 面试题12. 矩阵中的路径
- 面试题13. 机器人的运动范围
- 面试题14- I. 剪绳子
- 面试题14- II. 剪绳子 II
- 面试题15. 二进制中1的个数
- 面试题16. 数值的整数次方
- 面试题17. 打印从1到最大的n位数
- 面试题18. 删除链表的节点
- 面试题19. 正则表达式匹配
- 面试题20. 表示数值的字符串
- 面试题21. 调整数组顺序使奇数位于偶数前面
- 面试题22. 链表中倒数第k个节点
- 面试题24. 反转链表
- 面试题25. 合并两个排序的链表
- 面试题26. 树的子结构
- 面试题27. 二叉树的镜像
- 面试题28. 对称的二叉树
- 面试题29. 顺时针打印矩阵
- 面试题30. 包含min函数的栈
- 面试题31. 栈的压入、弹出序列
- 面试题32 - I. 从上到下打印二叉树
- 面试题32 - II. 从上到下打印二叉树 II
- 面试题32 - III. 从上到下打印二叉树 III
- 面试题33. 二叉搜索树的后序遍历序列
- 面试题34. 二叉树中和为某一值的路径
- 面试题35. 复杂链表的复制
- 面试题36. 二叉搜索树与双向链表
- 面试题37. 序列化二叉树
- 面试题38. 字符串的排列
- 面试题39. 数组中出现次数超过一半的数字
- 面试题40. 最小的k个数
- 面试题41. 数据流中的中位数
- 面试题42. 连续子数组的最大和
- 面试题43. 1~n整数中1出现的次数
- 面试题44. 数字序列中某一位的数字
- 面试题45. 把数组排成最小的数
- 面试题46. 把数字翻译成字符串
- 面试题47. 礼物的最大价值
- 面试题48. 最长不含重复字符的子字符串
- 面试题49. 丑数
- 面试题50. 第一个只出现一次的字符
- 面试题51. 数组中的逆序对
- 面试题52. 两个链表的第一个公共节点
- 面试题53 - I. 在排序数组中查找数字 I
- 面试题53 - II. 0~n-1中缺失的数字
- 面试题54. 二叉搜索树的第k大节点
- 面试题55 - I. 二叉树的深度
- 面试题55 - II. 平衡二叉树
- 面试题56 - I. 数组中数字出现的次数
- 面试题56 - II. 数组中数字出现的次数 II
- 面试题57 - II. 和为s的连续正数序列
- 面试题57. 和为s的两个数字
- 面试题58 - I. 翻转单词顺序
- 面试题58 - II. 左旋转字符串
- 面试题59 - I. 滑动窗口的最大值
- 面试题59 - II. 队列的最大值
- 面试题60. n个骰子的点数
- 面试题61. 扑克牌中的顺子
- 面试题62. 圆圈中最后剩下的数字
- 面试题63. 股票的最大利润
- 面试题64. 求1+2+…+n
- 面试题65. 不用加减乘除做加法
- 面试题66. 构建乘积数组
- 面试题67. 把字符串转换成整数
- 面试题68 - I. 二叉搜索树的最近公共祖先
- 面试题68 - II. 二叉树的最近公共祖先
- lcp
- LCP 01. 猜数字
- LCP 02. 分式化简
- LCP 03. 机器人大冒险
- LCP 04. 覆盖
- LCP 05. 发 LeetCoin
- LCP 06. 拿硬币
- LCP 07. 传递信息
- LCP 08. 剧情触发时间
- LCP 09. 最小跳跃次数
- LCP 10. 二叉树任务调度
- LCP 11. 期望个数统计
- LCP 12. 小张刷题计划
- LCP 13. 寻宝
- LCP 14. 切分数组
- LCP 15. 游乐园的迷宫
- LCP 16. 游乐园的游览计划
- LCP 17. 速算机器人
- LCP 18. 早餐组合
- LCP 19. 秋叶收藏集
- LCP 20. 快速公交
- LCP 21. 追逐游戏
- LCP 22. 黑白方格画
- LCP 23. 魔术排列
- LCP 24. 数字游戏
- LCP 25. 古董键盘
- LCP 26. 导航装置
- LCP 27. 黑盒光线反射
- LCP 28. 采购方案
- LCP 29. 乐团站位
- LCP 30. 魔塔游戏
- LCP 31. 变换的迷宫
- LCP 32. 批量处理任务
- LCP 33. 蓄水
- LCP 34. 二叉树染色
- LCP 35. 电动车游城市
- LCP 36. 最多牌组数
- LCP 37. 最小矩形面积
- LCP 38. 守卫城堡
- LCP 39. 无人机方阵
- LCP 40. 心算挑战
- LCP 41. 黑白翻转棋
- LCP 42. 玩具套圈
- LCP 43. 十字路口的交通
- LCP 44. 开幕式焰火
- LCP 45. 自行车炫技赛场
- LCP 46. 志愿者调配
- LCP 47. 入场安检
- LCP 48. 无限棋局
- LCP 49. 环形闯关游戏
- LCP 50. 宝石补给
- LCP 51. 烹饪料理
- LCP 52. 二叉搜索树染色
- LCP 53. 守护太空城
- LCP 54. 夺回据点
- LCP 55. 采集果实
- LCP 56. 信物传送
- LCP 57. 打地鼠
- LCP 58. 积木拼接
- LCP 59. 搭桥过河
- LCP 60. 力扣泡泡龙
- LCP 61. 气温变化趋势
- LCP 62. 交通枢纽
- LCP 63. 弹珠游戏
- LCP 64. 二叉树灯饰
- LCP 65. 舒适的湿度
- LCP 66. 最小展台数量
- LCP 67. 装饰树
- LCP 68. 美观的花束
- LCP 69. Hello LeetCode!
- LCP 70. 沙地治理
- LCP 71. 集水器
- LCP 72. 补给马车
- LCP 73. 探险营地
- LCP 74. 最强祝福力场
- LCP 75. 传送卷轴
- LCP 76. 魔法棋盘
- LCP 77. 符文储备
- LCP 78. 城墙防线
- LCP 79. 提取咒文
- LCP 80. 生物进化录
- LCP 81. 与非的谜题
- LCP 82. 万灵之树
- lcs
- LCS 01. 下载插件
- LCS 02. 完成一半题目
- LCS 03. 主题空间
- overrides/partials
- solution
- 0000-0099
- 0001.Two Sum
- 0002.Add Two Numbers
- 0003.Longest Substring Without Repeating Characters
- 0004.Median of Two Sorted Arrays
- 0005.Longest Palindromic Substring
- 0006.Zigzag Conversion
- 0007.Reverse Integer
- 0008.String to Integer (atoi)
- 0009.Palindrome Number
- 0010.Regular Expression Matching
- 0011.Container With Most Water
- 0012.Integer to Roman
- 0013.Roman to Integer
- 0014.Longest Common Prefix
- 0015.3Sum
- 0016.3Sum Closest
- 0017.Letter Combinations of a Phone Number
- 0018.4Sum
- 0019.Remove Nth Node From End of List
- 0020.Valid Parentheses
- 0021.Merge Two Sorted Lists
- 0022.Generate Parentheses
- 0023.Merge k Sorted Lists
- 0024.Swap Nodes in Pairs
- 0025.Reverse Nodes in k-Group
- 0026.Remove Duplicates from Sorted Array
- 0027.Remove Element
- 0028.Find the Index of the First Occurrence in a String
- 0029.Divide Two Integers
- 0030.Substring with Concatenation of All Words
- 0031.Next Permutation
- 0032.Longest Valid Parentheses
- 0033.Search in Rotated Sorted Array
- 0034.Find First and Last Position of Element in Sorted Array
- 0035.Search Insert Position
- 0036.Valid Sudoku
- 0037.Sudoku Solver
- 0038.Count and Say
- 0039.Combination Sum
- 0040.Combination Sum II
- 0041.First Missing Positive
- 0042.Trapping Rain Water
- 0043.Multiply Strings
- 0044.Wildcard Matching
- 0045.Jump Game II
- 0046.Permutations
- 0047.Permutations II
- 0048.Rotate Image
- 0049.Group Anagrams
- 0050.Pow(x, n)
- 0051.N-Queens
- 0052.N-Queens II
- 0053.Maximum Subarray
- 0054.Spiral Matrix
- 0055.Jump Game
- 0056.Merge Intervals
- 0057.Insert Interval
- 0058.Length of Last Word
- 0059.Spiral Matrix II
- 0060.Permutation Sequence
- 0061.Rotate List
- 0062.Unique Paths
- 0063.Unique Paths II
- 0064.Minimum Path Sum
- 0065.Valid Number
- 0066.Plus One
- 0067.Add Binary
- 0068.Text Justification
- 0069.Sqrt(x)
- 0070.Climbing Stairs
- 0071.Simplify Path
- 0072.Edit Distance
- 0073.Set Matrix Zeroes
- 0074.Search a 2D Matrix
- 0075.Sort Colors
- 0076.Minimum Window Substring
- 0077.Combinations
- 0078.Subsets
- 0079.Word Search
- 0080.Remove Duplicates from Sorted Array II
- 0081.Search in Rotated Sorted Array II
- 0082.Remove Duplicates from Sorted List II
- 0083.Remove Duplicates from Sorted List
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- images
- 0086.Partition List
- 0087.Scramble String
- 0088.Merge Sorted Array
- 0089.Gray Code
- 0090.Subsets II
- 0091.Decode Ways
- 0092.Reverse Linked List II
- 0093.Restore IP Addresses
- 0094.Binary Tree Inorder Traversal
- images
- 0095.Unique Binary Search Trees II
- 0096.Unique Binary Search Trees
- 0097.Interleaving String
- 0098.Validate Binary Search Tree
- 0099.Recover Binary Search Tree
- 0100-0199
- 0100.Same Tree
- 0101.Symmetric Tree
- 0102.Binary Tree Level Order Traversal
- 0103.Binary Tree Zigzag Level Order Traversal
- 0104.Maximum Depth of Binary Tree
- 0105.Construct Binary Tree from Preorder and Inorder Traversal
- 0106.Construct Binary Tree from Inorder and Postorder Traversal
- 0107.Binary Tree Level Order Traversal II
- 0108.Convert Sorted Array to Binary Search Tree
- 0109.Convert Sorted List to Binary Search Tree
- 0110.Balanced Binary Tree
- 0111.Minimum Depth of Binary Tree
- 0112.Path Sum
- 0113.Path Sum II
- 0114.Flatten Binary Tree to Linked List
- 0115.Distinct Subsequences
- 0116.Populating Next Right Pointers in Each Node
- 0117.Populating Next Right Pointers in Each Node II
- 0118.Pascal's Triangle
- 0119.Pascal's Triangle II
- 0120.Triangle
- 0121.Best Time to Buy and Sell Stock
- 0122.Best Time to Buy and Sell Stock II
- 0123.Best Time to Buy and Sell Stock III
- 0124.Binary Tree Maximum Path Sum
- 0125.Valid Palindrome
- 0126.Word Ladder II
- 0127.Word Ladder
- 0128.Longest Consecutive Sequence
- 0129.Sum Root to Leaf Numbers
- 0130.Surrounded Regions
- images
- 0131.Palindrome Partitioning
- 0132.Palindrome Partitioning II
- 0133.Clone Graph
- 0134.Gas Station
- 0135.Candy
- 0136.Single Number
- 0137.Single Number II
- 0138.Copy List with Random Pointer
- 0139.Word Break
- 0140.Word Break II
- 0141.Linked List Cycle
- 0142.Linked List Cycle II
- 0143.Reorder List
- 0144.Binary Tree Preorder Traversal
- images
- 0145.Binary Tree Postorder Traversal
- images
- 0146.LRU Cache
- 0147.Insertion Sort List
- images
- 0148.Sort List
- 0149.Max Points on a Line
- 0150.Evaluate Reverse Polish Notation
- 0151.Reverse Words in a String
- 0152.Maximum Product Subarray
- 0153.Find Minimum in Rotated Sorted Array
- 0154.Find Minimum in Rotated Sorted Array II
- 0155.Min Stack
- 0156.Binary Tree Upside Down
- 0157.Read N Characters Given Read4
- 0158.Read N Characters Given read4 II - Call Multiple Times
- 0159.Longest Substring with At Most Two Distinct Characters
- 0160.Intersection of Two Linked Lists
- 0161.One Edit Distance
- 0162.Find Peak Element
- 0163.Missing Ranges
- 0164.Maximum Gap
- 0165.Compare Version Numbers
- 0166.Fraction to Recurring Decimal
- 0167.Two Sum II - Input Array Is Sorted
- 0168.Excel Sheet Column Title
- 0169.Majority Element
- 0170.Two Sum III - Data structure design
- 0171.Excel Sheet Column Number
- 0172.Factorial Trailing Zeroes
- 0173.Binary Search Tree Iterator
- 0174.Dungeon Game
- 0175.Combine Two Tables
- 0176.Second Highest Salary
- 0177.Nth Highest Salary
- 0178.Rank Scores
- 0179.Largest Number
- 0180.Consecutive Numbers
- 0181.Employees Earning More Than Their Managers
- 0182.Duplicate Emails
- 0183.Customers Who Never Order
- 0184.Department Highest Salary
- 0185.Department Top Three Salaries
- 0186.Reverse Words in a String II
- 0187.Repeated DNA Sequences
- 0188.Best Time to Buy and Sell Stock IV
- 0189.Rotate Array
- 0190.Reverse Bits
- 0191.Number of 1 Bits
- 0192.Word Frequency
- 0193.Valid Phone Numbers
- 0194.Transpose File
- 0195.Tenth Line
- 0196.Delete Duplicate Emails
- 0197.Rising Temperature
- 0198.House Robber
- 0199.Binary Tree Right Side View
- images
- 0200-0299
- 0200.Number of Islands
- 0201.Bitwise AND of Numbers Range
- 0202.Happy Number
- 0203.Remove Linked List Elements
- 0204.Count Primes
- 0205.Isomorphic Strings
- 0206.Reverse Linked List
- 0207.Course Schedule
- 0208.Implement Trie (Prefix Tree)
- 0209.Minimum Size Subarray Sum
- 0210.Course Schedule II
- 0211.Design Add and Search Words Data Structure
- 0212.Word Search II
- 0213.House Robber II
- 0214.Shortest Palindrome
- 0215.Kth Largest Element in an Array
- 0216.Combination Sum III
- 0217.Contains Duplicate
- 0218.The Skyline Problem
- 0219.Contains Duplicate II
- 0220.Contains Duplicate III
- 0221.Maximal Square
- 0222.Count Complete Tree Nodes
- 0223.Rectangle Area
- 0224.Basic Calculator
- 0225.Implement Stack using Queues
- 0226.Invert Binary Tree
- 0227.Basic Calculator II
- 0228.Summary Ranges
- 0229.Majority Element II
- 0230.Kth Smallest Element in a BST
- 0231.Power of Two
- 0232.Implement Queue using Stacks
- 0233.Number of Digit One
- 0234.Palindrome Linked List
- 0235.Lowest Common Ancestor of a Binary Search Tree
- 0236.Lowest Common Ancestor of a Binary Tree
- 0237.Delete Node in a Linked List
- 0238.Product of Array Except Self
- 0239.Sliding Window Maximum
- 0240.Search a 2D Matrix II
- 0241.Different Ways to Add Parentheses
- 0242.Valid Anagram
- 0243.Shortest Word Distance
- 0244.Shortest Word Distance II
- 0245.Shortest Word Distance III
- 0246.Strobogrammatic Number
- 0247.Strobogrammatic Number II
- 0248.Strobogrammatic Number III
- 0249.Group Shifted Strings
- 0250.Count Univalue Subtrees
- 0251.Flatten 2D Vector
- 0252.Meeting Rooms
- 0253.Meeting Rooms II
- 0254.Factor Combinations
- 0255.Verify Preorder Sequence in Binary Search Tree
- 0256.Paint House
- 0257.Binary Tree Paths
- 0258.Add Digits
- 0259.3Sum Smaller
- 0260.Single Number III
- 0261.Graph Valid Tree
- 0262.Trips and Users
- 0263.Ugly Number
- 0264.Ugly Number II
- 0265.Paint House II
- 0266.Palindrome Permutation
- 0267.Palindrome Permutation II
- 0268.Missing Number
- 0269.Alien Dictionary
- 0270.Closest Binary Search Tree Value
- 0271.Encode and Decode Strings
- 0272.Closest Binary Search Tree Value II
- 0273.Integer to English Words
- 0274.H-Index
- 0275.H-Index II
- 0276.Paint Fence
- 0277.Find the Celebrity
- images
- 0278.First Bad Version
- 0279.Perfect Squares
- 0280.Wiggle Sort
- 0281.Zigzag Iterator
- 0282.Expression Add Operators
- 0283.Move Zeroes
- 0284.Peeking Iterator
- 0285.Inorder Successor in BST
- 0286.Walls and Gates
- 0287.Find the Duplicate Number
- 0288.Unique Word Abbreviation
- 0289.Game of Life
- 0290.Word Pattern
- 0291.Word Pattern II
- 0292.Nim Game
- 0293.Flip Game
- 0294.Flip Game II
- 0295.Find Median from Data Stream
- 0296.Best Meeting Point
- 0297.Serialize and Deserialize Binary Tree
- 0298.Binary Tree Longest Consecutive Sequence
- 0299.Bulls and Cows
- 0300-0399
- 0300.Longest Increasing Subsequence
- 0301.Remove Invalid Parentheses
- 0302.Smallest Rectangle Enclosing Black Pixels
- 0303.Range Sum Query - Immutable
- 0304.Range Sum Query 2D - Immutable
- 0305.Number of Islands II
- 0306.Additive Number
- 0307.Range Sum Query - Mutable
- 0308.Range Sum Query 2D - Mutable
- 0309.Best Time to Buy and Sell Stock with Cooldown
- 0310.Minimum Height Trees
- 0311.Sparse Matrix Multiplication
- 0312.Burst Balloons
- 0313.Super Ugly Number
- 0314.Binary Tree Vertical Order Traversal
- images
- 0315.Count of Smaller Numbers After Self
- 0316.Remove Duplicate Letters
- 0317.Shortest Distance from All Buildings
- 0318.Maximum Product of Word Lengths
- 0319.Bulb Switcher
- 0320.Generalized Abbreviation
- 0321.Create Maximum Number
- 0322.Coin Change
- 0323.Number of Connected Components in an Undirected Graph
- 0324.Wiggle Sort II
- 0325.Maximum Size Subarray Sum Equals k
- 0326.Power of Three
- 0327.Count of Range Sum
- 0328.Odd Even Linked List
- 0329.Longest Increasing Path in a Matrix
- 0330.Patching Array
- 0331.Verify Preorder Serialization of a Binary Tree
- 0332.Reconstruct Itinerary
- 0333.Largest BST Subtree
- 0334.Increasing Triplet Subsequence
- 0335.Self Crossing
- 0336.Palindrome Pairs
- 0337.House Robber III
- 0338.Counting Bits
- 0339.Nested List Weight Sum
- 0340.Longest Substring with At Most K Distinct Characters
- 0341.Flatten Nested List Iterator
- 0342.Power of Four
- 0343.Integer Break
- 0344.Reverse String
- 0345.Reverse Vowels of a String
- 0346.Moving Average from Data Stream
- 0347.Top K Frequent Elements
- 0348.Design Tic-Tac-Toe
- 0349.Intersection of Two Arrays
- 0350.Intersection of Two Arrays II
- 0351.Android Unlock Patterns
- 0352.Data Stream as Disjoint Intervals
- 0353.Design Snake Game
- 0354.Russian Doll Envelopes
- 0355.Design Twitter
- 0356.Line Reflection
- 0357.Count Numbers with Unique Digits
- 0358.Rearrange String k Distance Apart
- 0359.Logger Rate Limiter
- 0360.Sort Transformed Array
- 0361.Bomb Enemy
- 0362.Design Hit Counter
- 0363.Max Sum of Rectangle No Larger Than K
- 0364.Nested List Weight Sum II
- 0365.Water and Jug Problem
- 0366.Find Leaves of Binary Tree
- 0367.Valid Perfect Square
- 0368.Largest Divisible Subset
- 0369.Plus One Linked List
- 0370.Range Addition
- 0371.Sum of Two Integers
- 0372.Super Pow
- 0373.Find K Pairs with Smallest Sums
- 0374.Guess Number Higher or Lower
- 0375.Guess Number Higher or Lower II
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
14,739 files changed
+786818
-195052
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + |
Lines changed: 0 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - |
Lines changed: 23 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
6 | 26 |
| |
7 | 27 |
| |
8 | 28 |
| |
9 | 29 |
| |
10 | 30 |
| |
11 | 31 |
| |
12 | 32 |
| |
13 |
| - | |
| 33 | + | |
14 | 34 |
| |
15 | 35 |
|
Lines changed: 23 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
6 | 26 |
| |
7 | 27 |
| |
8 | 28 |
| |
9 | 29 |
| |
10 | 30 |
| |
11 | 31 |
| |
12 | 32 |
| |
13 |
| - | |
| 33 | + | |
14 | 34 |
| |
15 | 35 |
| |
16 | 36 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 |
| |
22 | 27 |
| |
23 | 28 |
| |
|
Lines changed: 48 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 |
| |
8 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 |
| |
10 | 21 |
| |
11 | 22 |
| |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
12 | 27 |
| |
13 | 28 |
| |
14 | 29 |
| |
| 30 | + | |
15 | 31 |
| |
16 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
17 | 41 |
| |
18 | 42 |
| |
19 | 43 |
| |
20 | 44 |
| |
21 | 45 |
| |
22 |
| - | |
| 46 | + | |
23 | 47 |
| |
24 | 48 |
| |
25 | 49 |
| |
26 | 50 |
| |
27 | 51 |
| |
28 |
| - | |
| 52 | + | |
29 | 53 |
| |
30 | 54 |
| |
31 | 55 |
| |
| |||
36 | 60 |
| |
37 | 61 |
| |
38 | 62 |
| |
| 63 | + | |
| 64 | + | |
39 | 65 |
| |
40 | 66 |
| |
41 | 67 |
| |
42 | 68 |
| |
43 | 69 |
| |
44 | 70 |
| |
45 | 71 |
| |
46 |
| - | |
| 72 | + | |
47 | 73 |
| |
48 | 74 |
| |
49 | 75 |
| |
50 | 76 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
58 | 89 |
| |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + |
Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 |
| |
8 | 12 |
| |
9 | 13 |
| |
|
Lines changed: 38 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + |
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 |
| |
8 | 12 |
| |
9 | 13 |
| |
| |||
17 | 21 |
| |
18 | 22 |
| |
19 | 23 |
| |
20 |
| - | |
| 24 | + | |
21 | 25 |
| |
22 | 26 |
| |
23 | 27 |
| |
24 | 28 |
| |
25 | 29 |
| |
26 | 30 |
| |
27 | 31 |
| |
28 |
| - | |
| 32 | + | |
29 | 33 |
| |
30 | 34 |
| |
31 | 35 |
| |
|
0 commit comments