File tree
1,227 files changed
+52536
-35251
lines changed- solution
- 0000-0099
- 0002.Add Two Numbers
- 0005.Longest Palindromic Substring
- 0011.Container With Most Water
- 0013.Roman to Integer
- 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
- 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
- images
- 0119.Pascal's Triangle II
- images
- 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
- 0175.Combine Two Tables
- 0176.Second Highest Salary
- 0177.Nth Highest Salary
- 0181.Employees Earning More Than Their Managers
- 0182.Duplicate Emails
- 0183.Customers Who Never Order
- 0184.Department Highest Salary
- 0185.Department Top Three Salaries
- 0192.Word Frequency
- 0195.Tenth Line
- 0196.Delete Duplicate Emails
- 0199.Binary Tree Right Side View
- images
- 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
- images
- 0364.Nested List Weight Sum II
- 0366.Find Leaves of Binary Tree
- 0370.Range Addition
- 0375.Guess Number Higher or Lower II
- 0382.Linked List Random Node
- 0388.Longest Absolute File Path
- 0391.Perfect Rectangle
- 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
- 0502.IPO
- 0504.Base 7
- 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
- 0517.Super Washing Machines
- 0518.Coin Change 2
- 0519.Random Flip Matrix
- 0520.Detect Capital
- 0522.Longest Uncommon Subsequence II
- 0525.Contiguous Array
- 0527.Word Abbreviation
- 0529.Minesweeper
- 0531.Lonely Pixel I
- 0533.Lonely Pixel II
- 0535.Encode and Decode TinyURL
- 0536.Construct Binary Tree from String
- 0537.Complex Number Multiplication
- 0538.Convert BST to Greater Tree
- 0540.Single Element in a Sorted Array
- 0542.01 Matrix
- 0543.Diameter of Binary Tree
- 0544.Output Contest Matches
- 0545.Boundary of Binary Tree
- 0547.Number of Provinces
- 0548.Split Array with Equal Sum
- 0549.Binary Tree Longest Consecutive Sequence II
- 0553.Optimal Division
- 0554.Brick Wall
- 0555.Split Concatenated Strings
- 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
- 0565.Array Nesting
- 0566.Reshape the Matrix
- 0568.Maximum Vacation Days
- 0569.Median Employee Salary
- 0570.Managers with at Least 5 Direct Reports
- 0571.Find Median Given Frequency of Numbers
- 0573.Squirrel Simulation
- 0576.Out of Boundary Paths
- 0577.Employee Bonus
- 0579.Find Cumulative Salary of an Employee
- 0580.Count Student Number in Departments
- 0582.Kill Process
- 0584.Find Customer Referee
- 0585.Investments in 2016
- 0587.Erect the Fence
- 0588.Design In-Memory File System
- 0589.N-ary Tree Preorder Traversal
- 0590.N-ary Tree Postorder Traversal
- 0591.Tag Validator
- 0592.Fraction Addition and Subtraction
- 0595.Big Countries
- 0596.Classes More Than 5 Students
- 0598.Range Addition II
- 0600-0699
- 0600.Non-negative Integers without Consecutive Ones
- 0603.Consecutive Available Seats
- 0606.Construct String from Binary Tree
- 0608.Tree Node
- 0610.Triangle Judgement
- 0611.Valid Triangle Number
- 0612.Shortest Distance in a Plane
- 0613.Shortest Distance in a Line
- 0614.Second Degree Follower
- 0615.Average Salary Departments VS Company
- 0617.Merge Two Binary Trees
- 0618.Students Report By Geography
- 0619.Biggest Single Number
- 0620.Not Boring Movies
- 0623.Add One Row to Tree
- 0625.Minimum Factorization
- 0629.K Inverse Pairs Array
- 0630.Course Schedule III
- 0631.Design Excel Sum Formula
- 0634.Find the Derangement of An Array
- 0636.Exclusive Time of Functions
- 0637.Average of Levels in Binary Tree
- 0640.Solve the Equation
- 0641.Design Circular Deque
- 0642.Design Search Autocomplete System
- 0643.Maximum Average Subarray I
- 0646.Maximum Length of Pair Chain
- 0647.Palindromic Substrings
- 0649.Dota2 Senate
- 0650.2 Keys Keyboard
- 0651.4 Keys Keyboard
- 0652.Find Duplicate Subtrees
- 0653.Two Sum IV - Input is a BST
- 0654.Maximum Binary Tree
- 0655.Print Binary Tree
- 0656.Coin Path
- 0661.Image Smoother
- 0663.Equal Tree Partition
- 0664.Strange Printer
- 0668.Kth Smallest Number in Multiplication Table
- 0669.Trim a Binary Search Tree
- 0670.Maximum Swap
- 0671.Second Minimum Node In a Binary Tree
- 0672.Bulb Switcher II
- 0675.Cut Off Trees for Golf Event
- 0679.24 Game
- 0680.Valid Palindrome II
- 0684.Redundant Connection
- 0685.Redundant Connection II
- 0687.Longest Univalue Path
- 0688.Knight Probability in Chessboard
- 0689.Maximum Sum of 3 Non-Overlapping Subarrays
- 0691.Stickers to Spell Word
- 0692.Top K Frequent Words
- 0694.Number of Distinct Islands
- 0695.Max Area of Island
- 0696.Count Binary Substrings
- 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
- 0709.To Lower Case
- 0710.Random Pick with Blacklist
- 0711.Number of Distinct Islands II
- 0712.Minimum ASCII Delete Sum for Two Strings
- 0713.Subarray Product Less Than K
- 0715.Range Module
- 0717.1-bit and 2-bit Characters
- 0719.Find K-th Smallest Pair Distance
- 0722.Remove Comments
- 0723.Candy Crush
- 0725.Split Linked List in Parts
- 0727.Minimum Window Subsequence
- 0728.Self Dividing Numbers
- 0729.My Calendar I
- 0730.Count Different Palindromic Subsequences
- 0731.My Calendar II
- 0733.Flood Fill
- 0736.Parse Lisp Expression
- 0737.Sentence Similarity II
- 0738.Monotone Increasing Digits
- 0739.Daily Temperatures
- 0741.Cherry Pickup
- images
- 0742.Closest Leaf in a Binary Tree
- 0743.Network Delay Time
- 0744.Find Smallest Letter Greater Than Target
- 0749.Contain Virus
- 0750.Number Of Corner Rectangles
- 0751.IP to CIDR
- 0754.Reach a Number
- 0755.Pour Water
- 0759.Employee Free Time
- 0760.Find Anagram Mappings
- 0761.Special Binary String
- 0762.Prime Number of Set Bits in Binary Representation
- 0764.Largest Plus Sign
- 0765.Couples Holding Hands
- 0766.Toeplitz Matrix
- 0767.Reorganize String
- 0768.Max Chunks To Make Sorted II
- 0769.Max Chunks To Make Sorted
- 0770.Basic Calculator IV
- 0773.Sliding Puzzle
- 0776.Split BST
- 0778.Swim in Rising Water
- 0779.K-th Symbol in Grammar
- 0780.Reaching Points
- 0781.Rabbits in Forest
- 0782.Transform to Chessboard
- 0783.Minimum Distance Between BST Nodes
- 0785.Is Graph Bipartite
- images
- 0787.Cheapest Flights Within K Stops
- 0790.Domino and Tromino Tiling
- 0791.Custom Sort String
- 0793.Preimage Size of Factorial Zeroes Function
- 0794.Valid Tic-Tac-Toe State
- 0795.Number of Subarrays with Bounded Maximum
- 0796.Rotate String
- 0797.All Paths From Source to Target
- 0798.Smallest Rotation with Highest Score
- 0799.Champagne Tower
- 0800-0899
- 0800.Similar RGB Color
- 0801.Minimum Swaps To Make Sequences Increasing
- 0802.Find Eventual Safe States
- 0807.Max Increase to Keep City Skyline
- 0808.Soup Servings
- 0810.Chalkboard XOR Game
- 0811.Subdomain Visit Count
- 0812.Largest Triangle Area
- 0813.Largest Sum of Averages
- 0814.Binary Tree Pruning
- 0816.Ambiguous Coordinates
- 0817.Linked List Components
- 0818.Race Car
- 0822.Card Flipping Game
- 0824.Goat Latin
- 0826.Most Profit Assigning Work
- 0827.Making A Large Island
- 0829.Consecutive Numbers Sum
- 0831.Masking Personal Information
- 0834.Sum of Distances in Tree
- 0835.Image Overlap
- 0837.New 21 Game
- 0838.Push Dominoes
- 0840.Magic Squares In Grid
- 0841.Keys and Rooms
- 0842.Split Array into Fibonacci Sequence
- 0847.Shortest Path Visiting All Nodes
- 0848.Shifting Letters
- 0849.Maximize Distance to Closest Person
- 0850.Rectangle Area II
- 0851.Loud and Rich
- 0853.Car Fleet
- 0855.Exam Room
- 0856.Score of Parentheses
- 0857.Minimum Cost to Hire K Workers
- 0858.Mirror Reflection
- 0860.Lemonade Change
- 0861.Score After Flipping Matrix
- 0862.Shortest Subarray with Sum at Least K
- 0863.All Nodes Distance K in Binary Tree
- 0864.Shortest Path to Get All Keys
- 0865.Smallest Subtree with all the Deepest Nodes
- 0866.Prime Palindrome
- 0867.Transpose Matrix
- 0870.Advantage Shuffle
- 0871.Minimum Number of Refueling Stops
- 0872.Leaf-Similar Trees
- 0876.Middle of the Linked List
- 0882.Reachable Nodes In Subdivided Graph
- 0883.Projection Area of 3D Shapes
- 0884.Uncommon Words from Two Sentences
- 0885.Spiral Matrix III
- 0886.Possible Bipartition
- 0888.Fair Candy Swap
- 0889.Construct Binary Tree from Preorder and Postorder Traversal
- 0890.Find and Replace Pattern
- 0891.Sum of Subsequence Widths
- 0892.Surface Area of 3D Shapes
- 0893.Groups of Special-Equivalent Strings
- 0894.All Possible Full Binary Trees
- 0896.Monotonic Array
- 0897.Increasing Order Search Tree
- 0899.Orderly Queue
- 0900-0999
- 0900.RLE Iterator
- 0901.Online Stock Span
- 0903.Valid Permutations for DI Sequence
- 0904.Fruit Into Baskets
- 0905.Sort Array By Parity
- 0908.Smallest Range I
- 0909.Snakes and Ladders
- 0910.Smallest Range II
- 0911.Online Election
- 0913.Cat and Mouse
- 0915.Partition Array into Disjoint Intervals
- 0916.Word Subsets
- 0917.Reverse Only Letters
- 0918.Maximum Sum Circular Subarray
- 0919.Complete Binary Tree Inserter
- 0920.Number of Music Playlists
- 0921.Minimum Add to Make Parentheses Valid
- 0926.Flip String to Monotone Increasing
- 0930.Binary Subarrays With Sum
- 0932.Beautiful Array
- 0935.Knight Dialer
- 0936.Stamping The Sequence
- 0938.Range Sum of BST
- 0939.Minimum Area Rectangle
- 0940.Distinct Subsequences II
- 0941.Valid Mountain Array
- 0945.Minimum Increment to Make Array Unique
- 0948.Bag of Tokens
- 0950.Reveal Cards In Increasing Order
- 0951.Flip Equivalent Binary Trees
- 0952.Largest Component Size by Common Factor
- 0958.Check Completeness of a Binary Tree
- 0959.Regions Cut By Slashes
- 0962.Maximum Width Ramp
- 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
- 0974.Subarray Sums Divisible by K
- 0979.Distribute Coins in Binary Tree
- 0980.Unique Paths III
- 0981.Time Based Key-Value Store
- 0982.Triples with Bitwise AND Equal To Zero
- 0983.Minimum Cost For Tickets
- 0985.Sum of Even Numbers After Queries
- 0986.Interval List Intersections
- 0987.Vertical Order Traversal of a Binary Tree
- 0988.Smallest String Starting From Leaf
- 0990.Satisfiability of Equality Equations
- 0991.Broken Calculator
- 0992.Subarrays with K Different Integers
- 0993.Cousins in Binary Tree
- 0994.Rotting Oranges
- 0995.Minimum Number of K Consecutive Bit Flips
- 0996.Number of Squareful Arrays
- 0997.Find the Town Judge
- 0998.Maximum Binary Tree II
- 0999.Available Captures for Rook
- 1000-1099
- 1000.Minimum Cost to Merge Stones
- 1001.Grid Illumination
- 1002.Find Common Characters
- 1005.Maximize Sum Of Array After K Negations
- 1006.Clumsy Factorial
- 1007.Minimum Domino Rotations For Equal Row
- 1008.Construct Binary Search Tree from Preorder Traversal
- 1012.Numbers With Repeated Digits
- 1016.Binary String With Substrings Representing 1 To N
- 1017.Convert to Base -2
- 1018.Binary Prefix Divisible By 5
- 1019.Next Greater Node In Linked List
- 1020.Number of Enclaves
- 1021.Remove Outermost Parentheses
- 1022.Sum of Root To Leaf Binary Numbers
- 1023.Camelcase Matching
- 1026.Maximum Difference Between Node and Ancestor
- 1028.Recover a Tree From Preorder Traversal
- 1030.Matrix Cells in Distance Order
- 1031.Maximum Sum of Two Non-Overlapping Subarrays
- 1032.Stream of Characters
- 1033.Moving Stones Until Consecutive
- 1034.Coloring A Border
- 1035.Uncrossed Lines
- 1038.Binary Search Tree to Greater Sum Tree
- 1039.Minimum Score Triangulation of Polygon
- 1040.Moving Stones Until Consecutive II
- 1047.Remove All Adjacent Duplicates In String
- 1050.Actors and Directors Who Cooperated At Least Three Times
- 1052.Grumpy Bookstore Owner
- 1055.Shortest Way to Form String
- 1056.Confusing Number
- 1057.Campus Bikes
- 1059.All Paths from Source Lead to Destination
- 1061.Lexicographically Smallest Equivalent String
- 1063.Number of Valid Subarrays
- 1065.Index Pairs of a String
- 1066.Campus Bikes II
- 1067.Digit Count in Range
- 1069.Product Sales Analysis II
- 1070.Product Sales Analysis III
- 1074.Number of Submatrices That Sum to Target
- 1078.Occurrences After Bigram
- 1080.Insufficient Nodes in Root to Leaf Paths
- 1083.Sales Analysis II
- 1088.Confusing Number II
- 1089.Duplicate Zeros
- 1090.Largest Values From Labels
- 1091.Shortest Path in Binary Matrix
- 1100-1199
- 1100.Find K-Length Substrings With No Repeated Characters
- 1102.Path With Maximum Minimum Value
- 1104.Path In Zigzag Labelled Binary Tree
- 1105.Filling Bookcase Shelves
- 1108.Defanging an IP Address
- 1110.Delete Nodes And Return Forest
- 1111.Maximum Nesting Depth of Two Valid Parentheses Strings
- 1118.Number of Days in a Month
- 1120.Maximum Average Subtree
- 1121.Divide Array Into Increasing Sequences
- 1123.Lowest Common Ancestor of Deepest Leaves
- 1128.Number of Equivalent Domino Pairs
- 1129.Shortest Path with Alternating Colors
- 1130.Minimum Cost Tree From Leaf Values
- 1131.Maximum of Absolute Value Expression
- 1133.Largest Unique Number
- 1135.Connecting Cities With Minimum Cost
- 1136.Parallel Courses
- 1137.N-th Tribonacci Number
- 1138.Alphabet Board Path
- 1139.Largest 1-Bordered Square
- 1141.User Activity for the Past 30 Days I
- 1142.User Activity for the Past 30 Days II
- 1145.Binary Tree Coloring Game
- 1154.Day of the Year
- 1157.Online Majority Element In Subarray
- 1160.Find Words That Can Be Formed by Characters
- 1161.Maximum Level Sum of a Binary Tree
- 1162.As Far from Land as Possible
- 1168.Optimize Water Distribution in a Village
- 1171.Remove Zero Sum Consecutive Nodes from Linked List
- 1184.Distance Between Bus Stops
- 1187.Make Array Strictly Increasing
- 1189.Maximum Number of Balloons
- 1192.Critical Connections in a Network
- 1197.Minimum Knight Moves
- 1200-1299
- 1203.Sort Items by Groups Respecting Dependencies
- 1204.Last Person to Fit in the Elevator
- 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
- 1218.Longest Arithmetic Subsequence of Given Difference
- 1222.Queens That Can Attack the King
- 1226.The Dining Philosophers
- 1227.Airplane Seat Assignment Probability
- 1232.Check If It Is a Straight Line
- 1235.Maximum Profit in Job Scheduling
- 1236.Web Crawler
- 1238.Circular Permutation in Binary Representation
- 1240.Tiling a Rectangle with the Fewest Squares
- 1242.Web Crawler Multithreaded
- 1245.Tree Diameter
- 1247.Minimum Swaps to Make Strings Equal
- 1249.Minimum Remove to Make Valid Parentheses
- 1251.Average Selling Price
- 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
- 1264.Page Recommendations
- 1266.Minimum Time Visiting All Points
- 1267.Count Servers that Communicate
- 1270.All People Report to the Given Manager
- 1272.Remove Interval
- 1273.Delete Tree Nodes
- 1274.Number of Ships in a Rectangle
- 1275.Find Winner on a Tic Tac Toe Game
- 1276.Number of Burgers with No Waste of Ingredients
- 1278.Palindrome Partitioning III
- 1279.Traffic Light Controlled Intersection
- 1284.Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1285.Find the Start and End Number of Continuous Ranges
- 1288.Remove Covered Intervals
- 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
- 1294.Weather Type in Each Country
- 1297.Maximum Number of Occurrences of a Substring
- 1298.Maximum Candies You Can Get from Boxes
- 1300-1399
- 1301.Number of Paths with Max Score
- 1302.Deepest Leaves Sum
- 1305.All Elements in Two Binary Search Trees
- 1310.XOR Queries of a Subarray
- 1311.Get Watched Videos by Your Friends
- 1315.Sum of Nodes with Even-Valued Grandparent
- 1317.Convert Integer to the Sum of Two No-Zero Integers
- 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
- 1321.Restaurant Growth
- 1322.Ads Performance
- 1323.Maximum 69 Number
- 1324.Print Words Vertically
- 1325.Delete Leaves With a Given Value
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1329.Sort the Matrix Diagonally
- 1330.Reverse Subarray To Maximize Array Value
- 1331.Rank Transform of an Array
- 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
- 1338.Reduce Array Size to The Half
- 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
- 1357.Apply Discount Every n Orders
- 1361.Validate Binary Tree Nodes
- 1367.Linked List in Binary Tree
- 1368.Minimum Cost to Make at Least One Valid Path in a Grid
- 1369.Get the Second Most Recent Activity
- 1372.Longest ZigZag Path in a Binary Tree
- 1373.Maximum Sum BST in Binary Tree
- 1375.Bulb Switcher III
- 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
- 1381.Design a Stack With Increment Operation
- 1382.Balance a Binary Search Tree
- 1383.Maximum Performance of a Team
- 1386.Cinema Seat Allocation
- 1387.Sort Integers by The Power Value
- 1388.Pizza With 3n Slices
- 1391.Check if There is a Valid Path in a Grid
- 1394.Find Lucky Integer in an Array
- 1400-1499
- 1400.Construct K Palindrome Strings
- 1401.Circle and Rectangle Overlapping
- 1402.Reducing Dishes
- 1403.Minimum Subsequence in Non-Increasing Order
- 1406.Stone Game III
- 1408.String Matching in an Array
- 1409.Queries on a Permutation With Key
- 1411.Number of Ways to Paint N × 3 Grid
- 1413.Minimum Value to Get Positive Step by Step Sum
- 1415.The k-th Lexicographical String of All Happy Strings of Length n
- 1416.Restore The Array
- 1418.Display Table of Food Orders in a Restaurant
- 1420.Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1421.NPV Queries
- 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
- 1431.Kids With the Greatest Number of Candies
- 1434.Number of Ways to Wear Different Hats to Each Other
- 1437.Check If All 1's Are at Least Length K Places Away
- 1440.Evaluate Boolean Expression
- 1442.Count Triplets That Can Form Two Arrays of Equal XOR
- 1443.Minimum Time to Collect All Apples in a Tree
- 1444.Number of Ways of Cutting a Pizza
- 1446.Consecutive Characters
- 1447.Simplified Fractions
- 1448.Count Good Nodes in Binary Tree
- 1453.Maximum Number of Darts Inside of a Circular Dartboard
- 1456.Maximum Number of Vowels in a Substring of Given Length
- 1457.Pseudo-Palindromic Paths in a Binary Tree
- 1458.Max Dot Product of Two Subsequences
- images
- 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
- 1470.Shuffle the Array
- 1471.The k Strongest Values in an Array
- 1474.Delete N Nodes After M Nodes of a Linked List
- 1476.Subrectangle Queries
- 1478.Allocate Mailboxes
- 1479.Sales by Day of the Week
- 1480.Running Sum of 1d Array
- 1481.Least Number of Unique Integers after K Removals
- 1482.Minimum Number of Days to Make m Bouquets
- 1483.Kth Ancestor of a Tree Node
- 1484.Group Sold Products By The Date
- 1485.Clone Binary Tree With Random Pointer
- 1486.XOR Operation in an Array
- 1487.Making File Names Unique
- 1489.Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- 1490.Clone N-ary Tree
- 1491.Average Salary Excluding the Minimum and Maximum Salary
- 1492.The kth Factor of n
- 1494.Parallel Courses II
- 1495.Friendly Movies Streamed Last Month
- 1496.Path Crossing
- 1500-1599
- 1500.Design a File Sharing System
- 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
- 1509.Minimum Difference Between Largest and Smallest Value in Three Moves
- 1511.Customer Order Frequency
- 1512.Number of Good Pairs
- 1513.Number of Substrings With Only 1s
- 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
- 1523.Count Odd Numbers in an Interval Range
- 1524.Number of Sub-arrays With Odd Sum
- 1525.Number of Good Ways to Split a String
- 1528.Shuffle String
- 1530.Number of Good Leaf Nodes Pairs
- 1534.Count Good Triplets
- 1535.Find the Winner of an Array Game
- 1536.Minimum Swaps to Arrange a Binary Grid
- 1537.Get the Maximum Score
- 1544.Make The String Great
- 1545.Find Kth Bit in Nth Binary String
- 1547.Minimum Cost to Cut a Stick
- 1548.The Most Similar Path in a Graph
- 1551.Minimum Operations to Make Array Equal
- 1552.Magnetic Force Between Two Balls
- 1553.Minimum Number of Days to Eat N Oranges
- 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
- 1579.Remove Max Number of Edges to Keep Graph Fully Traversable
- 1580.Put Boxes Into the Warehouse II
- 1584.Min Cost to Connect All Points
- 1586.Binary Search Tree Iterator II
- 1590.Make Sum Divisible by P
- 1591.Strange Printer II
- 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
- 1618.Maximum Font to Fit a Sentence in a Screen
- 1620.Coordinate With Maximum Network Quality
- 1621.Number of Sets of K Non-Overlapping Line Segments
- 1625.Lexicographically Smallest String After Applying Operations
- 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
- 1649.Create Sorted Array through Instructions
- 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
- 1682.Longest Palindromic Subsequence II
- 1689.Partitioning Into Minimum Number Of Deci-Binary Numbers
- 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
- 1712.Ways to Split Array Into Three Subarrays
- 1719.Number Of Ways To Reconstruct A Tree
- 1721.Swapping Nodes in a Linked List
- 1724.Checking Existence of Edge Length Limited Paths II
- 1725.Number Of Rectangles That Can Form The Largest Square
- 1726.Tuple with Same Product
- 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
- 1746.Maximum Subarray Sum After One Operation
- 1747.Leetflex Banned Accounts
- 1751.Maximum Number of Events That Can Be Attended II
- 1756.Design Most Recently Used Queue
- 1759.Count Number of Homogenous Substrings
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1762.Buildings With an Ocean View
- 1765.Map of Highest Peak
- 1766.Tree of Coprimes
- 1768.Merge Strings Alternately
- 1777.Product's Price for Each Store
- 1782.Count Pairs Of Nodes
- 1783.Grand Slam Titles
- 1786.Number of Restricted Paths From First to Last Node
- 1788.Maximize the Beauty of the Garden
- 1791.Find Center of Star Graph
- 1794.Count Pairs of Equal Substrings With Minimum Difference
- 1795.Rearrange Products Table
- 1797.Design Authentication Manager
- 1800-1899
- 1801.Number of Orders in the Backlog
- 1808.Maximize Number of Nice Divisors
- 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
- 1827.Minimum Operations to Make the Array Increasing
- 1828.Queries on Number of Points Inside a Circle
- 1831.Maximum Transaction Each Day
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,227 files changed
+52536
-35251
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
|
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 | |
---|---|---|---|
| |||
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 |
| - | |
| 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 | + |
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 | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
0 commit comments