File tree
6,820 files changed
+128614
-60941
lines changed- basic/sorting
- BubbleSort
- HeapSort
- InsertionSort
- MergeSort
- QuickSort
- SelectionSort
- ShellSort
- lcci
- 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.05.Sum Lists
- 02.06.Palindrome Linked List
- 03.01.Three in One
- 03.02.Min Stack
- 03.03.Stack of Plates
- 03.05.Sort of Stacks
- 04.01.Route Between Nodes
- 04.02.Minimum Height Tree
- 04.04.Check Balance
- 04.05.Legal Binary Search Tree
- 04.06.Successor
- 04.12.Paths with Sum
- 05.01.Insert Into Bits
- 05.04.Closed Number
- 05.07.Exchange
- 08.01.Three Steps Problem
- 08.03.Magic Index
- 08.04.Power Set
- 08.05.Recursive Mulitply
- 08.06.Hanota
- 08.07.Permutation I
- 08.08.Permutation II
- 08.10.Color Fill
- 08.11.Coin
- 08.12.Eight Queens
- 08.13.Pile Box
- 10.03.Search Rotate Array
- 10.11.Peaks and Valleys
- 16.01.Swap Numbers
- 16.02.Words Frequency
- 16.05.Factorial Zeros
- 16.06.Smallest Difference
- 16.07.Maximum
- 16.10.Living People
- 16.13.Bisect Squares
- 16.14.Best Line
- 16.16.Sub Sort
- 16.17.Contiguous Sequence
- 16.18.Pattern Matching
- 16.20.T9
- 16.21.Sum Swap
- 16.22.Langtons Ant
- 16.26.Calculator
- 17.04.Missing Number
- 17.09.Get Kth Magic Number
- 17.10.Find Majority Element
- 17.11.Find Closest
- 17.12.BiNode
- 17.14.Smallest K
- 17.17.Multi Search
- 17.18.Shortest Supersequence
- 17.21.Volume of Histogram
- 17.24.Max Submatrix
- 17.25.Word Rectangle
- 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. 二叉树的最近公共祖先
- 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 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 037. 小行星碰撞
- 剑指 Offer II 038. 每日温度
- 剑指 Offer II 039. 直方图最大矩形面积
- 剑指 Offer II 040. 矩阵中最大的矩形
- 剑指 Offer II 041. 滑动窗口的平均值
- 剑指 Offer II 042. 最近请求次数
- 剑指 Offer II 044. 二叉树每层的最大值
- 剑指 Offer II 045. 二叉树最底层最左边的值
- 剑指 Offer II 047. 二叉树剪枝
- 剑指 Offer II 048. 序列化与反序列化二叉树
- 剑指 Offer II 051. 节点之和最大的路径
- 剑指 Offer II 052. 展平二叉搜索树
- 剑指 Offer II 053. 二叉搜索树中的中序后继
- 剑指 Offer II 054. 所有大于等于节点的值之和
- 剑指 Offer II 055. 二叉搜索树迭代器
- 剑指 Offer II 058. 日程表
- 剑指 Offer II 060. 出现频率最高的 k 个数字
- 剑指 Offer II 061. 和最小的 k 个数对
- 剑指 Offer II 062. 实现前缀树
- 剑指 Offer II 063. 替换单词
- 剑指 Offer II 065. 最短的单词编码
- 剑指 Offer II 067. 最大的异或
- 剑指 Offer II 069. 山峰数组的顶部
- 剑指 Offer II 072. 求平方根
- 剑指 Offer II 073. 狒狒吃香蕉
- 剑指 Offer II 074. 合并区间
- 剑指 Offer II 075. 数组相对排序
- 剑指 Offer II 077. 链表排序
- 剑指 Offer II 078. 合并排序链表
- 剑指 Offer II 086. 分割回文子字符串
- 剑指 Offer II 087. 复原 IP
- 剑指 Offer II 088. 爬楼梯的最少成本
- 剑指 Offer II 089. 房屋偷盗
- 剑指 Offer II 090. 环形房屋偷盗
- 剑指 Offer II 091. 粉刷房子
- 剑指 Offer II 092. 翻转字符
- 剑指 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 107. 矩阵中的距离
- 剑指 Offer II 108. 单词演变
- 剑指 Offer II 113. 课程顺序
- 剑指 Offer II 114. 外星文字典
- 剑指 Offer II 116. 朋友圈
- 剑指 Offer II 117. 相似的字符串
- 剑指 Offer II 119. 最长连续序列
- lcp
- LCP 01. 猜数字
- LCP 02. 分式化简
- LCP 03. 机器人大冒险
- LCP 05. 发 LeetCoin
- LCP 06. 拿硬币
- LCP 07. 传递信息
- LCP 08. 剧情触发时间
- LCP 17. 速算机器人
- LCP 19. 秋叶收藏集
- LCP 22. 黑白方格画
- LCP 28. 采购方案
- LCP 33. 蓄水
- LCP 39. 无人机方阵
- LCP 41. 黑白翻转棋
- LCP 50. 宝石补给
- LCP 51. 烹饪料理
- LCP 52. 二叉搜索树染色
- LCP 55. 采集果实
- LCP 56. 信物传送
- LCP 77. 符文储备
- LCP 78. 城墙防线
- LCP 79. 提取咒文
- lcs/LCS 01. 下载插件
- 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
- 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
- 0038.Count and Say
- 0039.Combination Sum
- 0040.Combination Sum II
- 0041.First Missing Positive
- 0042.Trapping Rain Water
- 0043.Multiply Strings
- 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
- 0064.Minimum Path Sum
- 0065.Valid Number
- 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
- 0087.Scramble String
- 0088.Merge Sorted Array
- 0090.Subsets II
- 0091.Decode Ways
- 0092.Reverse Linked List II
- 0093.Restore IP Addresses
- 0094.Binary Tree Inorder Traversal
- 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
- 0104.Maximum Depth of Binary Tree
- 0105.Construct Binary Tree from Preorder and Inorder Traversal
- 0109.Convert Sorted List to Binary Search Tree
- 0111.Minimum Depth of Binary Tree
- 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
- 0127.Word Ladder
- 0128.Longest Consecutive Sequence
- 0129.Sum Root to Leaf Numbers
- 0130.Surrounded Regions
- 0131.Palindrome Partitioning
- 0132.Palindrome Partitioning II
- 0134.Gas Station
- 0135.Candy
- 0136.Single Number
- 0137.Single Number II
- 0138.Copy List with Random Pointer
- 0139.Word Break
- 0141.Linked List Cycle
- 0142.Linked List Cycle II
- 0143.Reorder List
- 0144.Binary Tree Preorder Traversal
- 0145.Binary Tree Postorder Traversal
- 0146.LRU Cache
- 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
- 0160.Intersection of Two Linked Lists
- 0163.Missing Ranges
- 0164.Maximum Gap
- 0165.Compare Version Numbers
- 0167.Two Sum II - Input Array Is Sorted
- 0168.Excel Sheet Column Title
- 0169.Majority Element
- 0172.Factorial Trailing Zeroes
- 0173.Binary Search Tree Iterator
- 0174.Dungeon Game
- 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
- 0187.Repeated DNA Sequences
- 0188.Best Time to Buy and Sell Stock IV
- 0189.Rotate Array
- 0190.Reverse Bits
- 0191.Number of 1 Bits
- 0196.Delete Duplicate Emails
- 0197.Rising Temperature
- 0198.House Robber
- 0199.Binary Tree Right Side View
- 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
- 0213.House Robber II
- 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
- 0226.Invert Binary Tree
- 0228.Summary Ranges
- 0229.Majority Element II
- 0230.Kth Smallest Element in a BST
- 0231.Power of Two
- 0233.Number of Digit One
- 0234.Palindrome Linked List
- 0235.Lowest Common Ancestor of a Binary Search Tree
- 0237.Delete Node in a Linked List
- 0238.Product of Array Except Self
- 0239.Sliding Window Maximum
- 0240.Search a 2D Matrix II
- 0242.Valid Anagram
- 0256.Paint House
- 0257.Binary Tree Paths
- 0258.Add Digits
- 0260.Single Number III
- 0263.Ugly Number
- 0264.Ugly Number II
- 0266.Palindrome Permutation
- 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
- 0279.Perfect Squares
- 0280.Wiggle Sort
- 0283.Move Zeroes
- 0285.Inorder Successor in BST
- 0286.Walls and Gates
- 0287.Find the Duplicate Number
- 0289.Game of Life
- 0290.Word Pattern
- 0294.Flip Game II
- 0295.Find Median from Data Stream
- 0297.Serialize and Deserialize Binary Tree
- 0298.Binary Tree Longest Consecutive Sequence
- 0299.Bulls and Cows
- 0300-0399
- 0300.Longest Increasing Subsequence
- 0302.Smallest Rectangle Enclosing Black Pixels
- 0303.Range Sum Query - Immutable
- 0305.Number of Islands II
- 0307.Range Sum Query - Mutable
- 0308.Range Sum Query 2D - Mutable
- 0309.Best Time to Buy and Sell Stock with Cooldown
- 0311.Sparse Matrix Multiplication
- 0313.Super Ugly Number
- 0314.Binary Tree Vertical Order Traversal
- 0315.Count of Smaller Numbers After Self
- 0316.Remove Duplicate Letters
- 0317.Shortest Distance from All Buildings
- 0318.Maximum Product of Word Lengths
- 0320.Generalized Abbreviation
- 0321.Create Maximum Number
- 0322.Coin Change
- 0324.Wiggle Sort II
- 0326.Power of Three
- 0331.Verify Preorder Serialization of a Binary Tree
- 0334.Increasing Triplet Subsequence
- 0336.Palindrome Pairs
- 0337.House Robber III
- 0338.Counting Bits
- 0341.Flatten Nested List Iterator
- 0343.Integer Break
- 0344.Reverse String
- 0345.Reverse Vowels of a String
- 0346.Moving Average from Data Stream
- 0347.Top K Frequent Elements
- 0349.Intersection of Two Arrays
- 0350.Intersection of Two Arrays II
- 0351.Android Unlock Patterns
- 0353.Design Snake Game
- 0354.Russian Doll Envelopes
- 0357.Count Numbers with Unique Digits
- 0363.Max Sum of Rectangle No Larger Than K
- 0365.Water and Jug Problem
- 0367.Valid Perfect Square
- 0370.Range Addition
- 0372.Super Pow
- 0374.Guess Number Higher or Lower
- 0377.Combination Sum IV
- 0380.Insert Delete GetRandom O(1)
- 0383.Ransom Note
- 0385.Mini Parser
- 0386.Lexicographical Numbers
- 0387.First Unique Character in a String
- 0388.Longest Absolute File Path
- 0389.Find the Difference
- 0391.Perfect Rectangle
- 0392.Is Subsequence
- 0393.UTF-8 Validation
- 0396.Rotate Function
- 0400-0499
- 0400.Nth Digit
- 0401.Binary Watch
- 0403.Frog Jump
- 0404.Sum of Left Leaves
- 0405.Convert a Number to Hexadecimal
- 0408.Valid Word Abbreviation
- 0409.Longest Palindrome
- 0412.Fizz Buzz
- 0413.Arithmetic Slices
- 0415.Add Strings
- 0416.Partition Equal Subset Sum
- 0417.Pacific Atlantic Water Flow
- 0421.Maximum XOR of Two Numbers in an Array
- 0422.Valid Word Square
- 0427.Construct Quad Tree
- 0429.N-ary Tree Level Order Traversal
- 0430.Flatten a Multilevel Doubly Linked List
- 0432.All O`one Data Structure
- 0433.Minimum Genetic Mutation
- 0434.Number of Segments in a String
- 0435.Non-overlapping Intervals
- 0438.Find All Anagrams in a String
- 0440.K-th Smallest in Lexicographical Order
- 0441.Arranging Coins
- 0443.String Compression
- 0445.Add Two Numbers II
- 0446.Arithmetic Slices II - Subsequence
- 0447.Number of Boomerangs
- 0448.Find All Numbers Disappeared in an Array
- 0449.Serialize and Deserialize BST
- 0451.Sort Characters By Frequency
- 0452.Minimum Number of Arrows to Burst Balloons
- 0453.Minimum Moves to Equal Array Elements
- 0456.132 Pattern
- 0459.Repeated Substring Pattern
- 0460.LFU Cache
- 0462.Minimum Moves to Equal Array Elements II
- 0466.Count The Repetitions
- 0469.Convex Polygon
- 0470.Implement Rand10() Using Rand7()
- 0471.Encode String with Shortest Length
- 0473.Matchsticks to Square
- 0474.Ones and Zeroes
- 0475.Heaters
- 0476.Number Complement
- 0479.Largest Palindrome Product
- 0481.Magical String
- 0483.Smallest Good Base
- 0485.Max Consecutive Ones
- 0486.Predict the Winner
- 0487.Max Consecutive Ones II
- 0489.Robot Room Cleaner
- 0490.The Maze
- 0493.Reverse Pairs
- 0494.Target Sum
- 0495.Teemo Attacking
- 0496.Next Greater Element I
- 0500-0599
- 0500.Keyboard Row
- 0501.Find Mode in Binary Search Tree
- 0503.Next Greater Element II
- 0504.Base 7
- 0505.The Maze II
- 0506.Relative Ranks
- 0507.Perfect Number
- 0509.Fibonacci Number
- 0510.Inorder Successor in BST II
- 0512.Game Play Analysis II
- 0513.Find Bottom Left Tree Value
- 0515.Find Largest Value in Each Tree Row
- 0518.Coin Change II
- 0525.Contiguous Array
- 0526.Beautiful Arrangement
- 0527.Word Abbreviation
- 0529.Minesweeper
- 0534.Game Play Analysis III
- 0538.Convert BST to Greater Tree
- 0540.Single Element in a Sorted Array
- 0543.Diameter of Binary Tree
- 0547.Number of Provinces
- 0550.Game Play Analysis IV
- 0551.Student Attendance Record I
- 0552.Student Attendance Record II
- 0554.Brick Wall
- 0555.Split Concatenated Strings
- 0557.Reverse Words in a String III
- 0560.Subarray Sum Equals K
- 0562.Longest Line of Consecutive One in Matrix
- 0565.Array Nesting
- 0566.Reshape the Matrix
- 0567.Permutation in String
- 0574.Winning Candidate
- 0576.Out of Boundary Paths
- 0578.Get Highest Answer Rate Question
- 0579.Find Cumulative Salary of an Employee
- 0581.Shortest Unsorted Continuous Subarray
- 0582.Kill Process
- 0583.Delete Operation for Two Strings
- 0586.Customer Placing the Largest Number of Orders
- 0587.Erect the Fence
- 0589.N-ary Tree Preorder Traversal
- 0590.N-ary Tree Postorder Traversal
- 0594.Longest Harmonious Subsequence
- 0595.Big Countries
- 0599.Minimum Index Sum of Two Lists
- 0600-0699
- 0603.Consecutive Available Seats
- 0605.Can Place Flowers
- 0611.Valid Triangle Number
- 0613.Shortest Distance in a Line
- 0615.Average Salary Departments VS Company
- 0619.Biggest Single Number
- 0621.Task Scheduler
- 0623.Add One Row to Tree
- 0626.Exchange Seats
- 0627.Swap Salary
- 0628.Maximum Product of Three Numbers
- 0630.Course Schedule III
- 0632.Smallest Range Covering Elements from K Lists
- 0633.Sum of Square Numbers
- 0634.Find the Derangement of An Array
- 0637.Average of Levels in Binary Tree
- 0639.Decode Ways II
- 0643.Maximum Average Subarray I
- 0644.Maximum Average Subarray II
- 0645.Set Mismatch
- 0646.Maximum Length of Pair Chain
- 0647.Palindromic Substrings
- 0648.Replace Words
- 0649.Dota2 Senate
- 0650.2 Keys Keyboard
- 0653.Two Sum IV - Input is a BST
- 0654.Maximum Binary Tree
- 0655.Print Binary Tree
- 0658.Find K Closest Elements
- 0661.Image Smoother
- 0662.Maximum Width of Binary Tree
- 0669.Trim a Binary Search Tree
- 0670.Maximum Swap
- 0673.Number of Longest Increasing Subsequence
- 0674.Longest Continuous Increasing Subsequence
- 0676.Implement Magic Dictionary
- 0678.Valid Parenthesis String
- 0679.24 Game
- 0680.Valid Palindrome II
- 0683.K Empty Slots
- 0687.Longest Univalue Path
- 0689.Maximum Sum of 3 Non-Overlapping Subarrays
- 0690.Employee Importance
- 0693.Binary Number with Alternating Bits
- 0694.Number of Distinct Islands
- 0695.Max Area of Island
- 0697.Degree of an Array
- 0698.Partition to K Equal Sum Subsets
- 0700-0799
- 0701.Insert into a Binary Search Tree
- 0704.Binary Search
- 0705.Design HashSet
- 0706.Design HashMap
- 0707.Design Linked List
- 0708.Insert into a Sorted Circular Linked List
- 0709.To Lower Case
- 0712.Minimum ASCII Delete Sum for Two Strings
- 0713.Subarray Product Less Than K
- 0714.Best Time to Buy and Sell Stock with Transaction Fee
- 0715.Range Module
- 0721.Accounts Merge
- 0722.Remove Comments
- 0727.Minimum Window Subsequence
- 0728.Self Dividing Numbers
- 0729.My Calendar I
- 0731.My Calendar II
- 0732.My Calendar III
- 0733.Flood Fill
- 0735.Asteroid Collision
- 0739.Daily Temperatures
- 0740.Delete and Earn
- 0741.Cherry Pickup
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
6,820 files changed
+128614
-60941
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
| 18 | + | |
17 | 19 |
| |
18 | 20 |
| |
19 | 21 |
| |
|
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 | + |
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 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + |
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 | + |
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 | + |
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 | + |
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 | + |
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 | + |
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 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + |
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 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + |
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 | + |
0 commit comments