File tree
640 files changed
+1739
-1418
lines changed- basic/sorting
- CountingSort
- HeapSort
- InsertionSort
- MergeSort
- QuickSort
- ShellSort
- lcci
- 03.02.Min Stack
- 03.04.Implement Queue using Stacks
- 03.05.Sort of Stacks
- 03.06.Animal Shelter
- 04.01.Route Between Nodes
- 04.12.Paths with Sum
- 08.10.Color Fill
- 08.12.Eight Queens
- 10.10.Rank from Stream
- 16.02.Words Frequency
- 16.06.Smallest Difference
- 16.11.Diving Board
- 16.21.Sum Swap
- 16.25.LRU Cache
- 17.12.BiNode
- 17.17.Multi Search
- 17.19.Missing Two
- 17.20.Continuous Median
- 17.24.Max Submatrix
- lcof
- 面试题06. 从尾到头打印链表
- 面试题09. 用两个栈实现队列
- 面试题18. 删除链表的节点
- 面试题29. 顺时针打印矩阵
- 面试题30. 包含min函数的栈
- 面试题32 - I. 从上到下打印二叉树
- 面试题36. 二叉搜索树与双向链表
- 面试题40. 最小的k个数
- 面试题41. 数据流中的中位数
- 面试题43. 1~n整数中1出现的次数
- 面试题45. 把数组排成最小的数
- 面试题55 - II. 平衡二叉树
- 面试题56 - I. 数组中数字出现的次数
- 面试题57. 和为s的两个数字
- 面试题59 - II. 队列的最大值
- 面试题65. 不用加减乘除做加法
- 面试题67. 把字符串转换成整数
- lcof2
- 剑指 Offer II 005. 单词长度的最大乘积
- 剑指 Offer II 006. 排序数组中两个数字之和
- 剑指 Offer II 007. 数组中和为 0 的三个数
- 剑指 Offer II 013. 二维子矩阵的和
- 剑指 Offer II 029. 排序的循环链表
- 剑指 Offer II 030. 插入、删除和随机访问都是 O(1) 的容器
- 剑指 Offer II 031. 最近最少使用缓存
- 剑指 Offer II 036. 后缀表达式
- 剑指 Offer II 041. 滑动窗口的平均值
- 剑指 Offer II 042. 最近请求次数
- 剑指 Offer II 043. 往完全二叉树添加节点
- 剑指 Offer II 044. 二叉树每层的最大值
- 剑指 Offer II 055. 二叉搜索树迭代器
- 剑指 Offer II 057. 值和下标之差都在给定的范围内
- 剑指 Offer II 059. 数据流的第 K 大数值
- 剑指 Offer II 060. 出现频率最高的 k 个数字
- 剑指 Offer II 061. 和最小的 k 个数对
- 剑指 Offer II 062. 实现前缀树
- 剑指 Offer II 063. 替换单词
- 剑指 Offer II 064. 神奇的字典
- 剑指 Offer II 066. 单词之和
- 剑指 Offer II 067. 最大的异或
- 剑指 Offer II 070. 排序数组中只出现一次的数字
- 剑指 Offer II 071. 按权重生成随机数
- 剑指 Offer II 072. 求平方根
- 剑指 Offer II 074. 合并区间
- 剑指 Offer II 076. 数组中的第 k 大的数字
- 剑指 Offer II 083. 没有重复元素集合的全排列
- 剑指 Offer II 084. 含有重复元素集合的全排列
- 剑指 Offer II 086. 分割回文子字符串
- 剑指 Offer II 087. 复原 IP
- 剑指 Offer II 096. 字符串交织
- 剑指 Offer II 107. 矩阵中的距离
- 剑指 Offer II 108. 单词演变
- 剑指 Offer II 109. 开密码锁
- 剑指 Offer II 111. 计算除法
- lcp
- LCP 02. 分式化简
- LCP 09. 最小跳跃次数
- solution
- 0000-0099
- 0001.Two Sum
- 0008.String to Integer (atoi)
- 0011.Container With Most Water
- 0012.Integer to Roman
- 0013.Roman to Integer
- 0017.Letter Combinations of a Phone Number
- 0020.Valid Parentheses
- 0027.Remove Element
- 0031.Next Permutation
- 0032.Longest Valid Parentheses
- 0034.Find First and Last Position of Element in Sorted Array
- 0037.Sudoku Solver
- 0041.First Missing Positive
- 0042.Trapping Rain Water
- 0044.Wildcard Matching
- 0046.Permutations
- 0047.Permutations II
- 0051.N-Queens
- 0052.N-Queens II
- 0056.Merge Intervals
- 0057.Insert Interval
- 0059.Spiral Matrix II
- 0060.Permutation Sequence
- 0065.Valid Number
- 0067.Add Binary
- 0068.Text Justification
- 0069.Sqrt(x)
- 0076.Minimum Window Substring
- 0081.Search in Rotated Sorted Array II
- 0091.Decode Ways
- 0093.Restore IP Addresses
- 0097.Interleaving String
- 0100-0199
- 0102.Binary Tree Level Order Traversal
- 0103.Binary Tree Zigzag Level Order Traversal
- 0107.Binary Tree Level Order Traversal II
- 0116.Populating Next Right Pointers in Each Node
- 0117.Populating Next Right Pointers in Each Node II
- 0123.Best Time to Buy and Sell Stock III
- 0127.Word Ladder
- 0146.LRU Cache
- 0150.Evaluate Reverse Polish Notation
- 0155.Min Stack
- 0167.Two Sum II - Input Array Is Sorted
- 0170.Two Sum III - Data structure design
- 0173.Binary Search Tree Iterator
- 0174.Dungeon Game
- 0199.Binary Tree Right Side View
- 0200-0299
- 0203.Remove Linked List Elements
- 0208.Implement Trie (Prefix Tree)
- 0211.Design Add and Search Words Data Structure
- 0212.Word Search II
- 0215.Kth Largest Element in an Array
- 0220.Contains Duplicate III
- 0222.Count Complete Tree Nodes
- 0225.Implement Stack using Queues
- 0227.Basic Calculator II
- 0232.Implement Queue using Stacks
- 0233.Number of Digit One
- 0235.Lowest Common Ancestor of a Binary Search Tree
- 0246.Strobogrammatic Number
- 0247.Strobogrammatic Number II
- 0258.Add Digits
- 0271.Encode and Decode Strings
- 0278.First Bad Version
- 0280.Wiggle Sort
- 0281.Zigzag Iterator
- 0282.Expression Add Operators
- 0284.Peeking Iterator
- 0286.Walls and Gates
- 0288.Unique Word Abbreviation
- 0289.Game of Life
- 0295.Find Median from Data Stream
- 0300-0399
- 0300.Longest Increasing Subsequence
- 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
- 0312.Burst Balloons
- 0315.Count of Smaller Numbers After Self
- 0317.Shortest Distance from All Buildings
- 0318.Maximum Product of Word Lengths
- 0327.Count of Range Sum
- 0333.Largest BST Subtree
- 0335.Self Crossing
- 0336.Palindrome Pairs
- 0345.Reverse Vowels of a String
- 0346.Moving Average from Data Stream
- 0347.Top K Frequent Elements
- 0348.Design Tic-Tac-Toe
- 0352.Data Stream as Disjoint Intervals
- 0354.Russian Doll Envelopes
- 0355.Design Twitter
- 0359.Logger Rate Limiter
- 0362.Design Hit Counter
- 0371.Sum of Two Integers
- 0372.Super Pow
- 0373.Find K Pairs with Smallest Sums
- 0374.Guess Number Higher or Lower
- 0379.Design Phone Directory
- 0380.Insert Delete GetRandom O(1)
- 0381.Insert Delete GetRandom O(1) - Duplicates allowed
- 0382.Linked List Random Node
- 0384.Shuffle an Array
- 0391.Perfect Rectangle
- 0398.Random Pick Index
- 0399.Evaluate Division
- 0400-0499
- 0405.Convert a Number to Hexadecimal
- 0407.Trapping Rain Water II
- 0410.Split Array Largest Sum
- 0414.Third Maximum Number
- 0417.Pacific Atlantic Water Flow
- 0421.Maximum XOR of Two Numbers in an Array
- 0423.Reconstruct Original Digits from English
- 0427.Construct Quad Tree
- 0429.N-ary Tree Level Order Traversal
- 0432.All O`one Data Structure
- 0436.Find Right Interval
- 0440.K-th Smallest in Lexicographical Order
- 0456.132 Pattern
- 0464.Can I Win
- 0472.Concatenated Words
- 0474.Ones and Zeroes
- 0483.Smallest Good Base
- 0487.Max Consecutive Ones II
- 0490.The Maze
- 0492.Construct the Rectangle
- 0493.Reverse Pairs
- 0497.Random Point in Non-overlapping Rectangles
- 0499.The Maze III
- 0500-0599
- 0502.IPO
- 0505.The Maze II
- 0506.Relative Ranks
- 0513.Find Bottom Left Tree Value
- 0515.Find Largest Value in Each Tree Row
- 0519.Random Flip Matrix
- 0520.Detect Capital
- 0522.Longest Uncommon Subsequence II
- 0524.Longest Word in Dictionary through Deleting
- 0528.Random Pick with Weight
- 0540.Single Element in a Sorted Array
- 0542.01 Matrix
- 0543.Diameter of Binary Tree
- 0549.Binary Tree Longest Consecutive Sequence II
- 0556.Next Greater Element III
- 0558.Logical OR of Two Binary Grids Represented as Quad-Trees
- 0564.Find the Closest Palindrome
- 0572.Subtree of Another Tree
- 0576.Out of Boundary Paths
- 0587.Erect the Fence
- 0588.Design In-Memory File System
- 0590.N-ary Tree Postorder Traversal
- 0600-0699
- 0616.Add Bold Tag in String
- 0622.Design Circular Queue
- 0633.Sum of Square Numbers
- 0637.Average of Levels in Binary Tree
- 0638.Shopping Offers
- 0640.Solve the Equation
- 0641.Design Circular Deque
- 0642.Design Search Autocomplete System
- 0645.Set Mismatch
- 0648.Replace Words
- 0654.Maximum Binary Tree
- 0657.Robot Return to Origin
- 0675.Cut Off Trees for Golf Event
- 0676.Implement Magic Dictionary
- 0677.Map Sum Pairs
- 0679.24 Game
- 0681.Next Closest Time
- 0683.K Empty Slots
- 0685.Redundant Connection II
- 0687.Longest Univalue Path
- 0689.Maximum Sum of 3 Non-Overlapping Subarrays
- 0691.Stickers to Spell Word
- 0693.Binary Number with Alternating Bits
- 0694.Number of Distinct Islands
- 0697.Degree of an Array
- 0698.Partition to K Equal Sum Subsets
- 0699.Falling Squares
- 0700-0799
- 0703.Kth Largest Element in a Stream
- 0705.Design HashSet
- 0706.Design HashMap
- 0707.Design Linked List
- 0708.Insert into a Sorted Circular Linked List
- 0710.Random Pick with Blacklist
- 0711.Number of Distinct Islands II
- 0712.Minimum ASCII Delete Sum for Two Strings
- 0715.Range Module
- 0723.Candy Crush
- 0730.Count Different Palindromic Subsequences
- 0731.My Calendar II
- 0732.My Calendar III
- 0733.Flood Fill
- 0734.Sentence Similarity
- 0737.Sentence Similarity II
- 0738.Monotone Increasing Digits
- 0741.Cherry Pickup
- 0745.Prefix and Suffix Search
- 0748.Shortest Completing Word
- 0752.Open the Lock
- 0758.Bold Words in String
- 0761.Special Binary String
- 0762.Prime Number of Set Bits in Binary Representation
- 0767.Reorganize String
- 0773.Sliding Puzzle
- 0777.Swap Adjacent in LR String
- 0786.K-th Smallest Prime Fraction
- 0800-0899
- 0804.Unique Morse Code Words
- 0806.Number of Lines To Write String
- 0811.Subdomain Visit Count
- 0824.Goat Latin
- 0826.Most Profit Assigning Work
- 0827.Making A Large Island
- 0838.Push Dominoes
- 0850.Rectangle Area II
- 0854.K-Similar Strings
- 0862.Shortest Subarray with Sum at Least K
- 0864.Shortest Path to Get All Keys
- 0865.Smallest Subtree with all the Deepest Nodes
- 0870.Advantage Shuffle
- 0878.Nth Magical Number
- 0885.Spiral Matrix III
- 0888.Fair Candy Swap
- 0900-0999
- 0900.RLE Iterator
- 0901.Online Stock Span
- 0909.Snakes and Ladders
- 0911.Online Election
- 0912.Sort an Array
- 0919.Complete Binary Tree Inserter
- 0927.Three Equal Parts
- 0932.Beautiful Array
- 0933.Number of Recent Calls
- 0934.Shortest Bridge
- 0935.Knight Dialer
- 0938.Range Sum of BST
- 0951.Flip Equivalent Binary Trees
- 0955.Delete Columns to Make Sorted II
- 0958.Check Completeness of a Binary Tree
- 0969.Pancake Sorting
- 0973.K Closest Points to Origin
- 0979.Distribute Coins in Binary Tree
- 0981.Time Based Key-Value Store
- 0986.Interval List Intersections
- 0987.Vertical Order Traversal of a Binary Tree
- 0988.Smallest String Starting From Leaf
- 0994.Rotting Oranges
- 0998.Maximum Binary Tree II
- 0999.Available Captures for Rook
- 1000-1099
- 1001.Grid Illumination
- 1011.Capacity To Ship Packages Within D Days
- 1029.Two City Scheduling
- 1030.Matrix Cells in Distance Order
- 1032.Stream of Characters
- 1033.Moving Stones Until Consecutive
- 1034.Coloring A Border
- 1036.Escape a Large Maze
- 1046.Last Stone Weight
- 1061.Lexicographically Smallest Equivalent String
- 1065.Index Pairs of a String
- 1073.Adding Two Negabinary Numbers
- 1090.Largest Values From Labels
- 1091.Shortest Path in Binary Matrix
- 1093.Statistics from a Large Sample
- 1095.Find in Mountain Array
- 1100-1199
- 1102.Path With Maximum Minimum Value
- 1110.Delete Nodes And Return Forest
- 1116.Print Zero Even Odd
- 1117.Building H2O
- 1118.Number of Days in a Month
- 1120.Maximum Average Subtree
- 1129.Shortest Path with Alternating Colors
- 1137.N-th Tribonacci Number
- 1139.Largest 1-Bordered Square
- 1147.Longest Chunked Palindrome Decomposition
- 1154.Day of the Year
- 1161.Maximum Level Sum of a Binary Tree
- 1162.As Far from Land as Possible
- 1166.Design File System
- 1168.Optimize Water Distribution in a Village
- 1175.Prime Arrangements
- 1185.Day of the Week
- 1197.Minimum Knight Moves
- 1200-1299
- 1206.Design Skiplist
- 1210.Minimum Moves to Reach Target with Rotations
- 1222.Queens That Can Attack the King
- 1244.Design A Leaderboard
- 1261.Find Elements in a Contaminated Binary Tree
- 1284.Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1286.Iterator for Combination
- 1289.Minimum Falling Path Sum II
- 1293.Shortest Path in a Grid with Obstacles Elimination
- 1298.Maximum Candies You Can Get from Boxes
- 1300-1399
- 1302.Deepest Leaves Sum
- 1304.Find N Unique Integers Sum up to Zero
- 1306.Jump Game III
- 1311.Get Watched Videos by Your Friends
- 1314.Matrix Block Sum
- 1315.Sum of Nodes with Even-Valued Grandparent
- 1316.Distinct Echo Substrings
- 1324.Print Words Vertically
- 1339.Maximum Product of Splitted Binary Tree
- 1345.Jump Game IV
- 1352.Product of the Last K Numbers
- 1368.Minimum Cost to Make at Least One Valid Path in a Grid
- 1372.Longest ZigZag Path in a Binary Tree
- 1379.Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1380.Lucky Numbers in a Matrix
- 1381.Design a Stack With Increment Operation
- 1383.Maximum Performance of a Team
- 1396.Design Underground System
- 1400-1499
- 1401.Circle and Rectangle Overlapping
- 1405.Longest Happy String
- 1411.Number of Ways to Paint N × 3 Grid
- 1417.Reformat The String
- 1424.Diagonal Traverse II
- 1429.First Unique Number
- 1431.Kids With the Greatest Number of Candies
- 1444.Number of Ways of Cutting a Pizza
- 1447.Simplified Fractions
- 1448.Count Good Nodes in Binary Tree
- 1457.Pseudo-Palindromic Paths in a Binary Tree
- 1458.Max Dot Product of Two Subsequences
- 1460.Make Two Arrays Equal by Reversing Sub-arrays
- 1461.Check If a String Contains All Binary Codes of Size K
- 1462.Course Schedule IV
- 1463.Cherry Pickup II
- 1464.Maximum Product of Two Elements in an Array
- 1470.Shuffle the Array
- 1472.Design Browser History
- 1476.Subrectangle Queries
- 1485.Clone Binary Tree With Random Pointer
- 1486.XOR Operation in an Array
- 1490.Clone N-ary Tree
- 1496.Path Crossing
- 1500-1599
- 1500.Design a File Sharing System
- 1505.Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1506.Find Root of N-Ary Tree
- 1507.Reformat Date
- 1514.Path with Maximum Probability
- 1533.Find the Index of the Large Integer
- 1534.Count Good Triplets
- 1537.Get the Maximum Score
- 1541.Minimum Insertions to Balance a Parentheses String
- 1545.Find Kth Bit in Nth Binary String
- 1550.Three Consecutive Odds
- 1561.Maximum Number of Coins You Can Get
- 1569.Number of Ways to Reorder Array to Get Same BST
- 1570.Dot Product of Two Sparse Vectors
- 1573.Number of Ways to Split a String
- 1575.Count All Possible Routes
- 1582.Special Positions in a Binary Matrix
- 1584.Min Cost to Connect All Points
- 1589.Maximum Sum Obtained of Any Permutation
- 1600-1699
- 1603.Design Parking System
- 1606.Find Servers That Handled Most Number of Requests
- 1619.Mean of Array After Removing Some Elements
- 1622.Fancy Sequence
- 1625.Lexicographically Smallest String After Applying Operations
- 1626.Best Team With No Conflicts
- 1628.Design an Expression Tree With Evaluate Function
- 1631.Path With Minimum Effort
- 1632.Rank Transform of a Matrix
- 1634.Add Two Polynomials Represented as Linked Lists
- 1636.Sort Array by Increasing Frequency
- 1649.Create Sorted Array through Instructions
- 1654.Minimum Jumps to Reach Home
- 1656.Design an Ordered Stream
- 1670.Design Front Middle Back Queue
- 1678.Goal Parser Interpretation
- 1700-1799
- 1704.Determine if String Halves Are Alike
- 1705.Maximum Number of Eaten Apples
- 1711.Count Good Meals
- 1712.Ways to Split Array Into Three Subarrays
- 1713.Minimum Operations to Make a Subsequence
- 1718.Construct the Lexicographically Largest Valid Sequence
- 1719.Number Of Ways To Reconstruct A Tree
- 1720.Decode XORed Array
- 1722.Minimize Hamming Distance After Swap Operations
- 1730.Shortest Path to Get Food
- 1756.Design Most Recently Used Queue
- 1765.Map of Highest Peak
- 1775.Equal Sum Arrays With Minimum Number of Operations
- 1778.Shortest Path in a Hidden Grid
- 1786.Number of Restricted Paths From First to Last Node
- 1797.Design Authentication Manager
- 1800-1899
- 1804.Implement Trie II (Prefix Tree)
- 1807.Evaluate the Bracket Pairs of a String
- 1810.Minimum Path Cost in a Hidden Grid
- 1813.Sentence Similarity III
- 1826.Faulty Sensor
- 1838.Frequency of the Most Frequent Element
- 1845.Seat Reservation Manager
- 1856.Maximum Subarray Min-Product
- 1858.Longest Word With All Prefixes
- 1860.Incremental Memory Leak
- 1865.Finding Pairs With a Certain Sum
- 1881.Maximum Value after Insertion
- 1882.Process Tasks Using Servers
- 1883.Minimum Skips to Arrive at Meeting On Time
- 1900-1999
- 1905.Count Sub Islands
- 1909.Remove One Element to Make the Array Strictly Increasing
- 1922.Count Good Numbers
- 1925.Count Square Sum Triples
- 1926.Nearest Exit from Entrance in Maze
- 1942.The Number of the Smallest Unoccupied Chair
- 1958.Check if Move is Legal
- 1964.Find the Longest Valid Obstacle Course at Each Position
- 1970.Last Day Where You Can Still Cross
- 1985.Find the Kth Largest Integer in the Array
- 1992.Find All Groups of Farmland
- 1993.Operations on Tree
- 1994.The Number of Good Subsets
- 1995.Count Special Quadruplets
- 1996.The Number of Weak Characters in the Game
- 2000-2099
- 2000.Reverse Prefix of Word
- 2007.Find Original Array From Doubled Array
- 2009.Minimum Number of Operations to Make Array Continuous
- 2013.Detect Squares
- 2017.Grid Game
- 2029.Stone Game IX
- 2031.Count Subarrays With More Ones Than Zeros
- 2034.Stock Price Fluctuation
- 2039.The Time When the Network Becomes Idle
- 2043.Simple Bank System
- 2045.Second Minimum Time to Reach Destination
- 2047.Number of Valid Words in a Sentence
- 2054.Two Best Non-Overlapping Events
- 2058.Find the Minimum and Maximum Number of Nodes Between Critical Points
- 2059.Minimum Operations to Convert Number
- 2063.Vowels of All Substrings
- 2074.Reverse Nodes in Even Length Groups
- 2076.Process Restricted Friend Requests
- 2078.Two Furthest Houses With Different Colors
- 2080.Range Frequency Queries
- 2081.Sum of k-Mirror Numbers
- 2092.Find All People With Secret
- 2093.Minimum Cost to Reach City With Discounts
- 2096.Step-By-Step Directions From a Binary Tree Node to Another
- 2099.Find Subsequence of Length K With the Largest Sum
- 2100-2199
- 2101.Detonate the Maximum Bombs
- 2104.Sum of Subarray Ranges
- 2106.Maximum Fruits Harvested After at Most K Steps
- 2110.Number of Smooth Descent Periods of a Stock
- 2115.Find All Possible Recipes from Given Supplies
- 2120.Execution of All Suffix Instructions Staying in a Grid
- 2127.Maximum Employees to Be Invited to a Meeting
- 2136.Earliest Possible Day of Full Bloom/images
- 2140.Solving Questions With Brainpower
- 2145.Count the Hidden Sequences
- 2146.K Highest Ranked Items Within a Price Range
- 2157.Groups of Strings
- 2158.Amount of New Area Painted Each Day
- 2162.Minimum Cost to Set Cooking Time
- 2164.Sort Even and Odd Indices Independently
- 2166.Design Bitset
- 2170.Minimum Operations to Make the Array Alternating
- 2174.Remove All Ones With Row and Column Flips II
- 2177.Find Three Consecutive Integers That Sum to a Given Number
- 2179.Count Good Triplets in an Array
- 2184.Number of Ways to Build Sturdy Brick Wall
- 2187.Minimum Time to Complete Trips
- 2191.Sort the Jumbled Numbers
- 2192.All Ancestors of a Node in a Directed Acyclic Graph
- 2200-2299
- 2203.Minimum Weighted Subgraph With the Required Paths
- 2208.Minimum Operations to Halve Array Sum
- 2215.Find the Difference of Two Arrays
- 2224.Minimum Number of Operations to Convert Time
- 2227.Encrypt and Decrypt Strings
- 2232.Minimize Result by Adding Parentheses to Expression
- 2257.Count Unguarded Cells in the Grid
- 2258.Escape the Spreading Fire
- 2265.Count Nodes Equal to Average of Subtree
- 2266.Count Number of Texts
- 2276.Count Integers in Intervals
- 2280.Minimum Lines to Represent a Line Chart
- 2281.Sum of Total Strength of Wizards
- 2290.Minimum Obstacle Removal to Reach Corner
- 2291.Maximum Profit From Trading Stocks
- 2295.Replace Elements in an Array
- 2296.Design a Text Editor
- 2300-2399
- 2312.Selling Pieces of Wood
- 2320.Count Number of Ways to Place Houses
- 2333.Minimum Sum of Squared Difference
- 2336.Smallest Number in Infinite Set
- 2337.Move Pieces to Obtain a String
- 2338.Count the Number of Ideal Arrays
- 2341.Maximum Number of Pairs in Array
- 2349.Design a Number Container System
- 2358.Maximum Number of Groups Entering a Competition
- 2359.Find Closest Node to Given Two Nodes
- 2360.Longest Cycle in a Graph
- 2368.Reachable Nodes With Restrictions
- 2371.Minimize Maximum Value in a Grid
- 2378.Choose Edges to Maximize Score in a Tree
- 2383.Minimum Hours of Training to Win a Competition
- 2385.Amount of Time for Binary Tree to Be Infected
- 2386.Find the K-Sum of an Array
- 2389.Longest Subsequence With Limited Sum
- 2390.Removing Stars From a String
- 2400-2499
- 2400.Number of Ways to Reach a Position After Exactly k Steps
- 2402.Meeting Rooms III
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
640 files changed
+1739
-1418
lines changed+143-4
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 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
1 | 140 |
| |
2 | 141 |
| |
3 | 142 |
| |
| |||
107 | 246 |
| |
108 | 247 |
| |
109 | 248 |
| |
110 |
| - | |
| 249 | + | |
111 | 250 |
| |
112 | 251 |
| |
113 | 252 |
| |
114 |
| - | |
| 253 | + | |
115 | 254 |
| |
116 | 255 |
| |
117 | 256 |
| |
118 | 257 |
| |
119 |
| - | |
| 258 | + | |
120 | 259 |
| |
121 | 260 |
| |
122 | 261 |
| |
123 | 262 |
| |
124 |
| - | |
| 263 | + | |
125 | 264 |
| |
126 | 265 |
| |
127 | 266 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
| 37 | + | |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
34 | 33 |
| |
35 | 34 |
| |
36 | 35 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
|
0 commit comments