File tree
1,332 files changed
+2582
-2576
lines changed- lcci/02.04.Partition List
- lcof
- 面试题07. 重建二叉树
- 面试题12. 矩阵中的路径
- 面试题34. 二叉树中和为某一值的路径
- 面试题35. 复杂链表的复制
- 面试题36. 二叉搜索树与双向链表
- 面试题37. 序列化二叉树
- 面试题52. 两个链表的第一个公共节点
- 面试题68 - I. 二叉搜索树的最近公共祖先
- 面试题68 - II. 二叉树的最近公共祖先
- lcof2
- 剑指 Offer II 013. 二维子矩阵的和
- 剑指 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 039. 直方图最大矩形面积
- 剑指 Offer II 040. 矩阵中最大的矩形
- 剑指 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 077. 链表排序
- 剑指 Offer II 095. 最长公共子序列
- 剑指 Offer II 096. 字符串交织
- 剑指 Offer II 098. 路径的数目
- 剑指 Offer II 099. 最小路径之和
- 剑指 Offer II 105. 岛屿的最大面积
- 剑指 Offer II 106. 二分图
- 剑指 Offer II 107. 矩阵中的距离
- 剑指 Offer II 110. 所有路径
- 剑指 Offer II 112. 最长递增路径
- 剑指 Offer II 116. 朋友圈
- 剑指 Offer II 118. 多余的边
- lcp
- LCP 02. 分式化简
- LCP 04. 覆盖
- LCP 05. 发 LeetCoin
- LCP 10. 二叉树任务调度
- LCP 13. 寻宝
- LCP 15. 游乐园的迷宫
- LCP 21. 追逐游戏
- LCP 26. 导航装置
- LCP 27. 黑盒光线反射
- LCP 29. 乐团站位
- LCP 31. 变换的迷宫
- LCP 33. 蓄水
- LCP 34. 二叉树染色
- LCP 35. 电动车游城市
- LCP 38. 守卫城堡
- LCP 39. 无人机方阵
- LCP 41. 黑白翻转棋
- LCP 42. 玩具套圈
- LCP 43. 十字路口的交通
- LCP 46. 志愿者调配
- LCP 47. 入场安检
- LCP 48. 无限棋局
- LCP 49. 环形闯关游戏
- lcs/LCS 03. 主题空间
- solution
- 0000-0099
- 0002.Add Two Numbers
- 0011.Container With Most Water
- 0017.Letter Combinations of a Phone Number
- 0019.Remove Nth Node From End of List
- 0021.Merge Two Sorted Lists
- 0024.Swap Nodes in Pairs
- 0025.Reverse Nodes in k-Group
- 0036.Valid Sudoku
- 0037.Sudoku Solver
- 0038.Count and Say
- 0042.Trapping Rain Water
- 0048.Rotate Image
- 0051.N-Queens
- 0052.N-Queens II
- 0054.Spiral Matrix
- 0059.Spiral Matrix II
- 0061.Rotate List
- 0062.Unique Paths
- 0063.Unique Paths II
- 0064.Minimum Path Sum
- 0072.Edit Distance
- 0073.Set Matrix Zeroes
- 0074.Search a 2D Matrix
- 0079.Word Search
- 0082.Remove Duplicates from Sorted List II
- 0083.Remove Duplicates from Sorted List
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- 0086.Partition List
- 0092.Reverse Linked List II
- 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
- 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
- 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
- 0124.Binary Tree Maximum Path Sum
- 0129.Sum Root to Leaf Numbers
- 0130.Surrounded Regions
- 0133.Clone Graph
- 0138.Copy List with Random Pointer
- 0141.Linked List Cycle
- 0142.Linked List Cycle II
- 0143.Reorder List
- 0144.Binary Tree Preorder Traversal
- 0145.Binary Tree Postorder Traversal
- 0147.Insertion Sort List
- 0148.Sort List
- 0149.Max Points on a Line
- 0156.Binary Tree Upside Down
- 0157.Read N Characters Given Read4
- 0158.Read N Characters Given read4 II - Call Multiple Times
- 0160.Intersection of Two Linked Lists
- 0173.Binary Search Tree Iterator
- 0174.Dungeon Game
- 0199.Binary Tree Right Side View
- 0200-0299
- 0203.Remove Linked List Elements
- 0206.Reverse Linked List
- 0212.Word Search II
- 0218.The Skyline Problem
- 0221.Maximal Square
- 0222.Count Complete Tree Nodes
- 0223.Rectangle Area
- 0226.Invert Binary Tree
- 0230.Kth Smallest Element in a BST
- 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
- 0240.Search a 2D Matrix II
- 0250.Count Univalue Subtrees
- 0255.Verify Preorder Sequence in Binary Search Tree
- 0257.Binary Tree Paths
- 0261.Graph Valid Tree
- 0270.Closest Binary Search Tree Value
- 0272.Closest Binary Search Tree Value II
- 0276.Paint Fence
- 0277.Find the Celebrity
- 0285.Inorder Successor in BST
- 0286.Walls and Gates
- 0289.Game of Life
- 0296.Best Meeting Point
- 0297.Serialize and Deserialize Binary Tree
- 0298.Binary Tree Longest Consecutive Sequence
- 0300-0399
- 0302.Smallest Rectangle Enclosing Black Pixels
- 0304.Range Sum Query 2D - Immutable
- 0305.Number of Islands II
- 0308.Range Sum Query 2D - Mutable
- 0310.Minimum Height Trees
- 0311.Sparse Matrix Multiplication
- 0314.Binary Tree Vertical Order Traversal
- 0317.Shortest Distance from All Buildings
- 0319.Bulb Switcher
- 0323.Number of Connected Components in an Undirected Graph
- 0328.Odd Even Linked List
- 0329.Longest Increasing Path in a Matrix
- 0331.Verify Preorder Serialization of a Binary Tree
- 0332.Reconstruct Itinerary
- 0333.Largest BST Subtree
- 0335.Self Crossing
- 0337.House Robber III
- 0339.Nested List Weight Sum
- 0351.Android Unlock Patterns
- 0353.Design Snake Game
- 0356.Line Reflection
- 0361.Bomb Enemy
- 0363.Max Sum of Rectangle No Larger Than K
- 0364.Nested List Weight Sum II
- 0366.Find Leaves of Binary Tree
- 0370.Range Addition
- 0373.Find K Pairs with Smallest Sums
- 0375.Guess Number Higher or Lower II
- 0382.Linked List Random Node
- 0388.Longest Absolute File Path
- 0391.Perfect Rectangle
- 0398.Random Pick Index
- 0400-0499
- 0401.Binary Watch
- 0404.Sum of Left Leaves
- 0407.Trapping Rain Water II
- 0417.Pacific Atlantic Water Flow
- 0419.Battleships in a Board
- 0422.Valid Word Square
- 0426.Convert Binary Search Tree to Sorted Doubly Linked List
- 0427.Construct Quad Tree
- 0428.Serialize and Deserialize N-ary Tree
- 0429.N-ary Tree Level Order Traversal
- 0430.Flatten a Multilevel Doubly Linked List
- 0431.Encode N-ary Tree to Binary Tree
- 0437.Path Sum III
- 0441.Arranging Coins
- 0445.Add Two Numbers II
- 0450.Delete Node in a BST
- 0463.Island Perimeter
- 0469.Convex Polygon
- 0473.Matchsticks to Square
- 0489.Robot Room Cleaner
- 0490.The Maze
- 0497.Random Point in Non-overlapping Rectangles
- 0498.Diagonal Traverse
- 0499.The Maze III
- 0500-0599
- 0500.Keyboard Row
- 0501.Find Mode in Binary Search Tree
- 0505.The Maze II
- 0508.Most Frequent Subtree Sum
- 0510.Inorder Successor in BST II
- 0513.Find Bottom Left Tree Value
- 0514.Freedom Trail
- 0515.Find Largest Value in Each Tree Row
- 0529.Minesweeper
- 0530.Minimum Absolute Difference in BST
- 0531.Lonely Pixel I
- 0533.Lonely Pixel II
- 0536.Construct Binary Tree from String
- 0538.Convert BST to Greater Tree
- 0542.01 Matrix
- 0543.Diameter of Binary Tree
- 0545.Boundary of Binary Tree
- 0547.Number of Provinces
- 0549.Binary Tree Longest Consecutive Sequence II
- 0554.Brick Wall
- 0558.Logical OR of Two Binary Grids Represented as Quad-Trees
- 0559.Maximum Depth of N-ary Tree
- 0562.Longest Line of Consecutive One in Matrix
- 0563.Binary Tree Tilt
- 0566.Reshape the Matrix
- 0572.Subtree of Another Tree
- 0573.Squirrel Simulation
- 0576.Out of Boundary Paths
- 0582.Kill Process
- 0587.Erect the Fence
- 0588.Design In-Memory File System
- 0589.N-ary Tree Preorder Traversal
- 0590.N-ary Tree Postorder Traversal
- 0598.Range Addition II
- 0600-0699
- 0606.Construct String from Binary Tree
- 0608.Tree Node
- 0617.Merge Two Binary Trees
- 0623.Add One Row to Tree
- 0633.Sum of Square Numbers
- 0636.Exclusive Time of Functions
- 0637.Average of Levels in Binary Tree
- 0652.Find Duplicate Subtrees
- 0653.Two Sum IV - Input is a BST
- 0654.Maximum Binary Tree
- 0655.Print Binary Tree
- 0661.Image Smoother
- 0662.Maximum Width of Binary Tree
- 0663.Equal Tree Partition
- 0666.Path Sum IV
- 0668.Kth Smallest Number in Multiplication Table
- 0669.Trim a Binary Search Tree
- 0671.Second Minimum Node In a Binary Tree
- 0675.Cut Off Trees for Golf Event
- 0684.Redundant Connection
- 0685.Redundant Connection II
- 0687.Longest Univalue Path
- 0688.Knight Probability in Chessboard
- 0690.Employee Importance
- 0694.Number of Distinct Islands
- 0695.Max Area of Island
- 0699.Falling Squares
- 0700-0799
- 0700.Search in a Binary Search Tree
- 0701.Insert into a Binary Search Tree
- 0708.Insert into a Sorted Circular Linked List
- 0711.Number of Distinct Islands II
- 0723.Candy Crush
- 0725.Split Linked List in Parts
- 0733.Flood Fill
- 0741.Cherry Pickup
- 0742.Closest Leaf in a Binary Tree
- 0743.Network Delay Time
- 0749.Contain Virus
- 0750.Number Of Corner Rectangles
- 0755.Pour Water
- 0756.Pyramid Transition Matrix
- 0764.Largest Plus Sign
- 0766.Toeplitz Matrix
- 0773.Sliding Puzzle
- 0776.Split BST
- 0778.Swim in Rising Water
- 0782.Transform to Chessboard
- 0783.Minimum Distance Between BST Nodes
- 0785.Is Graph Bipartite
- 0787.Cheapest Flights Within K Stops
- 0790.Domino and Tromino Tiling
- 0794.Valid Tic-Tac-Toe State
- 0797.All Paths From Source to Target
- 0799.Champagne Tower
- 0800-0899
- 0802.Find Eventual Safe States
- 0807.Max Increase to Keep City Skyline
- 0812.Largest Triangle Area
- 0814.Binary Tree Pruning
- 0817.Linked List Components
- 0833.Find And Replace in String
- 0834.Sum of Distances in Tree
- 0835.Image Overlap
- 0838.Push Dominoes
- 0840.Magic Squares In Grid
- 0847.Shortest Path Visiting All Nodes
- 0849.Maximize Distance to Closest Person
- 0850.Rectangle Area II
- 0858.Mirror Reflection
- 0861.Score After Flipping Matrix
- 0863.All Nodes Distance K in Binary Tree
- 0864.Shortest Path to Get All Keys
- 0865.Smallest Subtree with all the Deepest Nodes
- 0867.Transpose Matrix
- 0872.Leaf-Similar Trees
- 0876.Middle of the Linked List
- 0882.Reachable Nodes In Subdivided Graph
- 0883.Projection Area of 3D Shapes
- 0885.Spiral Matrix III
- 0889.Construct Binary Tree from Preorder and Postorder Traversal
- 0892.Surface Area of 3D Shapes
- 0894.All Possible Full Binary Trees
- 0897.Increasing Order Search Tree
- 0900-0999
- 0909.Snakes and Ladders
- 0913.Cat and Mouse
- 0919.Complete Binary Tree Inserter
- 0931.Minimum Falling Path Sum
- 0935.Knight Dialer
- 0938.Range Sum of BST
- 0939.Minimum Area Rectangle
- 0941.Valid Mountain Array
- 0951.Flip Equivalent Binary Trees
- 0952.Largest Component Size by Common Factor
- 0958.Check Completeness of a Binary Tree
- 0959.Regions Cut By Slashes
- 0963.Minimum Area Rectangle II
- 0965.Univalued Binary Tree
- 0968.Binary Tree Cameras
- 0971.Flip Binary Tree To Match Preorder Traversal
- 0973.K Closest Points to Origin
- 0979.Distribute Coins in Binary Tree
- 0980.Unique Paths III
- 0986.Interval List Intersections
- 0987.Vertical Order Traversal of a Binary Tree
- 0988.Smallest String Starting From Leaf
- 0993.Cousins in Binary Tree
- 0994.Rotting Oranges
- 0998.Maximum Binary Tree II
- 0999.Available Captures for Rook
- 1000-1099
- 1001.Grid Illumination
- 1007.Minimum Domino Rotations For Equal Row
- 1008.Construct Binary Search Tree from Preorder Traversal
- 1019.Next Greater Node In Linked List
- 1020.Number of Enclaves
- 1022.Sum of Root To Leaf Binary Numbers
- 1026.Maximum Difference Between Node and Ancestor
- 1028.Recover a Tree From Preorder Traversal
- 1035.Uncrossed Lines
- 1038.Binary Search Tree to Greater Sum Tree
- 1039.Minimum Score Triangulation of Polygon
- 1056.Confusing Number
- 1057.Campus Bikes
- 1059.All Paths from Source Lead to Destination
- 1066.Campus Bikes II
- 1074.Number of Submatrices That Sum to Target
- 1080.Insufficient Nodes in Root to Leaf Paths
- 1091.Shortest Path in Binary Matrix
- 1100-1199
- 1102.Path With Maximum Minimum Value
- 1104.Path In Zigzag Labelled Binary Tree
- 1105.Filling Bookcase Shelves
- 1110.Delete Nodes And Return Forest
- 1111.Maximum Nesting Depth of Two Valid Parentheses Strings
- 1120.Maximum Average Subtree
- 1123.Lowest Common Ancestor of Deepest Leaves
- 1130.Minimum Cost Tree From Leaf Values
- 1135.Connecting Cities With Minimum Cost
- 1136.Parallel Courses
- 1138.Alphabet Board Path
- 1143.Longest Common Subsequence
- 1145.Binary Tree Coloring Game
- 1161.Maximum Level Sum of a Binary Tree
- 1162.As Far from Land as Possible
- 1168.Optimize Water Distribution in a Village
- 1184.Distance Between Bus Stops
- 1185.Day of the Week
- 1189.Maximum Number of Balloons
- 1192.Critical Connections in a Network
- 1197.Minimum Knight Moves
- 1200-1299
- 1203.Sort Items by Groups Respecting Dependencies
- 1206.Design Skiplist
- 1210.Minimum Moves to Reach Target with Rotations
- 1214.Two Sum BSTs
- 1217.Minimum Cost to Move Chips to The Same Position
- 1222.Queens That Can Attack the King
- 1226.The Dining Philosophers
- 1232.Check If It Is a Straight Line
- 1235.Maximum Profit in Job Scheduling
- 1236.Web Crawler
- 1240.Tiling a Rectangle with the Fewest Squares
- 1242.Web Crawler Multithreaded
- 1245.Tree Diameter
- 1252.Cells with Odd Values in a Matrix
- 1254.Number of Closed Islands
- 1256.Encode Number
- 1259.Handshakes That Don't Cross
- 1260.Shift 2D Grid
- 1261.Find Elements in a Contaminated Binary Tree
- 1263.Minimum Moves to Move a Box to Their Target Location
- 1266.Minimum Time Visiting All Points
- 1267.Count Servers that Communicate
- 1272.Remove Interval
- 1273.Delete Tree Nodes
- 1274.Number of Ships in a Rectangle
- 1275.Find Winner on a Tic Tac Toe Game
- 1279.Traffic Light Controlled Intersection
- 1284.Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1289.Minimum Falling Path Sum II
- 1290.Convert Binary Number in a Linked List to Integer
- 1292.Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1293.Shortest Path in a Grid with Obstacles Elimination
- 1300-1399
- 1302.Deepest Leaves Sum
- 1305.All Elements in Two Binary Search Trees
- 1311.Get Watched Videos by Your Friends
- 1315.Sum of Nodes with Even-Valued Grandparent
- 1318.Minimum Flips to Make a OR b Equal to c
- 1319.Number of Operations to Make Network Connected
- 1320.Minimum Distance to Type a Word Using Two Fingers
- 1322.Ads Performance
- 1325.Delete Leaves With a Given Value
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1329.Sort the Matrix Diagonally
- 1334.Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1335.Minimum Difficulty of a Job Schedule
- 1336.Number of Transactions per Visit
- 1339.Maximum Product of Splitted Binary Tree
- 1340.Jump Game V
- 1344.Angle Between Hands of a Clock
- 1349.Maximum Students Taking Exam
- 1353.Maximum Number of Events That Can Be Attended
- 1361.Validate Binary Tree Nodes
- 1367.Linked List in Binary Tree
- 1368.Minimum Cost to Make at Least One Valid Path in a Grid
- 1372.Longest ZigZag Path in a Binary Tree
- 1373.Maximum Sum BST in Binary Tree
- 1376.Time Needed to Inform All Employees
- 1377.Frog Position After T Seconds
- 1379.Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1382.Balance a Binary Search Tree
- 1386.Cinema Seat Allocation
- 1388.Pizza With 3n Slices
- 1391.Check if There is a Valid Path in a Grid
- 1400-1499
- 1401.Circle and Rectangle Overlapping
- 1411.Number of Ways to Paint N × 3 Grid
- 1420.Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1424.Diagonal Traverse II
- 1428.Leftmost Column with at Least a One
- 1430.Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree
- 1437.Check If All 1's Are at Least Length K Places Away
- 1443.Minimum Time to Collect All Apples in a Tree
- 1444.Number of Ways of Cutting a Pizza
- 1448.Count Good Nodes in Binary Tree
- 1453.Maximum Number of Darts Inside of a Circular Dartboard
- 1457.Pseudo-Palindromic Paths in a Binary Tree
- 1458.Max Dot Product of Two Subsequences
- 1459.Rectangles Area
- 1462.Course Schedule IV
- 1463.Cherry Pickup II
- 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
- 1469.Find All The Lonely Nodes
- 1474.Delete N Nodes After M Nodes of a Linked List
- 1478.Allocate Mailboxes
- 1483.Kth Ancestor of a Tree Node
- 1485.Clone Binary Tree With Random Pointer
- 1489.Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- 1490.Clone N-ary Tree
- 1494.Parallel Courses II
- 1496.Path Crossing
- 1500-1599
- 1503.Last Moment Before All Ants Fall Out of a Plank
- 1504.Count Submatrices With All Ones
- 1505.Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1506.Find Root of N-Ary Tree
- 1514.Path with Maximum Probability
- 1515.Best Position for a Service Centre
- 1516.Move Sub-Tree of N-Ary Tree
- 1518.Water Bottles
- 1519.Number of Nodes in the Sub-Tree With the Same Label
- 1521.Find a Value of a Mysterious Function Closest to Target
- 1522.Diameter of N-Ary Tree
- 1528.Shuffle String
- 1530.Number of Good Leaf Nodes Pairs
- 1535.Find the Winner of an Array Game
- 1536.Minimum Swaps to Arrange a Binary Grid
- 1537.Get the Maximum Score
- 1547.Minimum Cost to Cut a Stick
- 1548.The Most Similar Path in a Graph
- 1552.Magnetic Force Between Two Balls
- 1557.Minimum Number of Vertices to Reach All Nodes
- 1558.Minimum Numbers of Function Calls to Make Target Array
- 1559.Detect Cycles in 2D Grid
- 1560.Most Visited Sector in a Circular Track
- 1564.Put Boxes Into the Warehouse I
- 1568.Minimum Number of Days to Disconnect Island
- 1569.Number of Ways to Reorder Array to Get Same BST
- 1572.Matrix Diagonal Sum
- 1578.Minimum Time to Make Rope Colorful
- 1579.Remove Max Number of Edges to Keep Graph Fully Traversable
- 1580.Put Boxes Into the Warehouse II
- 1582.Special Positions in a Binary Matrix
- 1584.Min Cost to Connect All Points
- 1586.Binary Search Tree Iterator II
- 1591.Strange Printer II
- 1594.Maximum Non Negative Product in a Matrix
- 1595.Minimum Cost to Connect Two Groups of Points
- 1597.Build Binary Expression Tree From Infix Expression
- 1598.Crawler Log Folder
- 1599.Maximum Profit of Operating a Centennial Wheel
- 1600-1699
- 1601.Maximum Number of Achievable Transfer Requests
- 1602.Find Nearest Right Node in Binary Tree
- 1606.Find Servers That Handled Most Number of Requests
- 1609.Even Odd Tree
- 1610.Maximum Number of Visible Points
- 1612.Check If Two Expression Trees are Equivalent
- 1615.Maximal Network Rank
- 1617.Count Subtrees With Max Distance Between Cities
- 1620.Coordinate With Maximum Network Quality
- 1621.Number of Sets of K Non-Overlapping Line Segments
- 1627.Graph Connectivity With Threshold
- 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
- 1637.Widest Vertical Area Between Two Points Containing No Points
- 1642.Furthest Building You Can Reach
- 1643.Kth Smallest Instructions
- 1644.Lowest Common Ancestor of a Binary Tree II
- 1645.Hopper Company Queries II
- 1648.Sell Diminishing-Valued Colored Balls
- 1650.Lowest Common Ancestor of a Binary Tree III
- 1656.Design an Ordered Stream
- 1659.Maximize Grid Happiness
- 1660.Correct a Binary Tree
- 1666.Change the Root of a Binary Tree
- 1669.Merge In Between Linked Lists
- 1676.Lowest Common Ancestor of a Binary Tree IV
- 1691.Maximum Height by Stacking Cuboids
- 1692.Count Ways to Distribute Candies
- 1697.Checking Existence of Edge Length Limited Paths
- 1700-1799
- 1706.Where Will the Ball Fall
- 1719.Number Of Ways To Reconstruct A Tree
- 1721.Swapping Nodes in a Linked List
- 1724.Checking Existence of Edge Length Limited Paths II
- 1727.Largest Submatrix With Rearrangements
- 1728.Cat and Mouse II
- 1730.Shortest Path to Get Food
- 1739.Building Boxes
- 1740.Find Distance in a Binary Tree
- 1751.Maximum Number of Events That Can Be Attended II
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1765.Map of Highest Peak
- 1766.Tree of Coprimes
- 1782.Count Pairs Of Nodes
- 1786.Number of Restricted Paths From First to Last Node
- 1791.Find Center of Star Graph
- 1797.Design Authentication Manager
- 1800-1899
- 1801.Number of Orders in the Backlog
- 1812.Determine Color of a Chessboard Square
- 1819.Number of Different Subsequences GCDs
- 1823.Find the Winner of the Circular Game
- 1824.Minimum Sideway Jumps
- 1828.Queries on Number of Points Inside a Circle
- 1836.Remove Duplicates From an Unsorted Linked List
- 1840.Maximum Building Height
- 1857.Largest Color Value in a Directed Graph
- 1861.Rotating the Box
- 1878.Get Biggest Three Rhombus Sums in a Grid
- 1886.Determine Whether Matrix Can Be Obtained By Rotation
- 1895.Largest Magic Square
- 1900-1999
- 1901.Find a Peak Element II
- 1902.Depth of BST Given Insertion Order
- 1905.Count Sub Islands
- 1914.Cyclically Rotating a Grid
- 1916.Count Ways to Build Rooms in an Ant Colony
- 1924.Erect the Fence II
- 1926.Nearest Exit from Entrance in Maze
- 1928.Minimum Cost to Reach Destination in Time
- 1931.Painting a Grid With Three Different Colors
- 1932.Merge BSTs to Create Single BST
- 1937.Maximum Number of Points with Cost
- 1938.Maximum Genetic Difference Query
- 1943.Describe the Painting
- 1944.Number of Visible People in a Queue
- 1948.Delete Duplicate Folders in System
- 1954.Minimum Garden Perimeter to Collect Enough Apples
- 1956.Minimum Time For K Virus Variants to Spread
- 1958.Check if Move is Legal
- 1970.Last Day Where You Can Still Cross
- 1971.Find if Path Exists in Graph
- 1973.Count Nodes Equal to Sum of Descendants
- 1974.Minimum Time to Type Word Using Special Typewriter
- 1975.Maximum Matrix Sum
- 1976.Number of Ways to Arrive at Destination
- 1981.Minimize the Difference Between Target and Chosen Elements
- 1992.Find All Groups of Farmland
- 1993.Operations on Tree
- 2000-2099
- 2002.Maximum Product of the Length of Two Palindromic Subsequences
- 2003.Smallest Missing Genetic Value in Each Subtree
- 2005.Subtree Removal Game with Fibonacci Tree
- 2013.Detect Squares
- 2014.Longest Subsequence Repeated k Times
- 2015.Average Height of Buildings in Each Segment
- 2017.Grid Game
- 2018.Check if Word Can Be Placed In Crossword
- 2019.The Score of Students Solving Math Expression
- 2021.Brightest Position on Street
- 2022.Convert 1D Array Into 2D Array
- 2030.Smallest K-Length Subsequence With Occurrences of a Letter
- 2033.Minimum Operations to Make a Uni-Value Grid
- 2035.Partition Array Into Two Arrays to Minimize Sum Difference
- 2039.The Time When the Network Becomes Idle
- 2042.Check if Numbers Are Ascending in a Sentence
- 2045.Second Minimum Time to Reach Destination
- 2046.Sort Linked List Already Sorted Using Absolute Values
- 2049.Count Nodes With the Highest Score
- 2050.Parallel Courses III
- 2054.Two Best Non-Overlapping Events
- 2055.Plates Between Candles
- 2056.Number of Valid Move Combinations On Chessboard
- 2058.Find the Minimum and Maximum Number of Nodes Between Critical Points
- 2061.Number of Spaces Cleaning Robot Cleaned
- 2065.Maximum Path Quality of a Graph
- 2069.Walking Robot Simulation II
- 2074.Reverse Nodes in Even Length Groups
- 2075.Decode the Slanted Ciphertext
- 2077.Paths in Maze That Lead to Same Room
- 2078.Two Furthest Houses With Different Colors
- 2087.Minimum Cost Homecoming of a Robot in a Grid
- 2088.Count Fertile Pyramids in a Land
- 2090.K Radius Subarray Averages
- 2093.Minimum Cost to Reach City With Discounts
- 2095.Delete the Middle Node of a Linked List
- 2096.Step-By-Step Directions From a Binary Tree Node to Another
- 2100-2199
- 2101.Detonate the Maximum Bombs
- 2103.Rings and Rods
- 2106.Maximum Fruits Harvested After at Most K Steps
- 2116.Check if a Parentheses String Can Be Valid
- 2120.Execution of All Suffix Instructions Staying in a Grid
- 2123.Minimum Operations to Remove Adjacent Ones in Matrix
- 2125.Number of Laser Beams in a Bank
- 2127.Maximum Employees to Be Invited to a Meeting
- 2128.Remove All Ones With Row and Column Flips
- 2130.Maximum Twin Sum of a Linked List
- 2132.Stamping the Grid
- 2133.Check if Every Row and Column Contains All Numbers
- 2136.Earliest Possible Day of Full Bloom
- 2141.Maximum Running Time of N Computers
- 2146.K Highest Ranked Items Within a Price Range
- 2147.Number of Ways to Divide a Long Corridor
- 2151.Maximum Good People Based on Statements
- 2152.Minimum Number of Lines to Cover Points
- 2158.Amount of New Area Painted Each Day
- 2162.Minimum Cost to Set Cooking Time
- 2174.Remove All Ones With Row and Column Flips II
- 2181.Merge Nodes in Between Zeros
- 2184.Number of Ways to Build Sturdy Brick Wall
- 2189.Number of Ways to Build House of Cards
- 2192.All Ancestors of a Node in a Directed Acyclic Graph
- 2194.Cells in a Range on an Excel Sheet
- 2196.Create Binary Tree From Descriptions
- 2200-2299
- 2201.Count Artifacts That Can Be Extracted
- 2203.Minimum Weighted Subgraph With the Required Paths
- 2204.Distance to a Cycle in Undirected Graph
- 2209.Minimum White Tiles After Covering With Carpets
- 2212.Maximum Points in an Archery Competition
- 2218.Maximum Value of K Coins From Piles
- 2221.Find Triangular Sum of an Array
- 2236.Root Equals Sum of Children
- 2237.Count Positions on Street With Required Brightness
- 2242.Maximum Score of a Node Sequence
- 2245.Maximum Trailing Zeros in a Cornered Path
- 2246.Longest Path With Different Adjacent Characters
- 2247.Maximum Cost of Trip With K Highways
- 2249.Count Lattice Points Inside a Circle
- 2250.Count Number of Rectangles Containing Each Point
- 2251.Number of Flowers in Full Bloom
- 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
- 2267.Check if There Is a Valid Parentheses String Path
- 2268.Minimum Number of Keypresses
- 2271.Maximum White Tiles Covered by a Carpet
- 2277.Closest Node to Path in Tree
- 2280.Minimum Lines to Represent a Line Chart
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,332 files changed
+2582
-2576
lines changed+3-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
| 169 | + | |
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
203 |
| - | |
| 203 | + | |
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
|
+3-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
163 |
| - | |
| 163 | + | |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
| 174 | + | |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
|
+33-27
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
| 13 | + | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
150 | 148 |
| |
151 | 149 |
| |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
152 | 158 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
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 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
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 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
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 |
| |
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
0 commit comments