File tree
1,359 files changed
+4118
-4886
lines changed- basic
- searching/BinarySearch
- sorting
- BubbleSort
- CountingSort
- HeapSort
- InsertionSort
- QuickSort
- SelectionSort
- ShellSort
- lcci
- 01.02.Check Permutation
- 01.04.Palindrome Permutation
- 01.08.Zero Matrix
- 04.01.Route Between Nodes
- 04.06.Successor
- 08.04.Power Set
- 08.10.Color Fill
- 10.10.Rank from Stream
- 16.06.Smallest Difference
- 16.19.Pond Sizes
- 16.25.LRU Cache
- 17.01.Add Without Plus
- 17.06.Number Of 2s In Range
- 17.09.Get Kth Magic Number
- 17.11.Find Closest
- 17.17.Multi Search
- 17.19.Missing Two
- 17.20.Continuous Median
- lcof
- 面试题03. 数组中重复的数字
- 面试题05. 替换空格
- 面试题09. 用两个栈实现队列
- 面试题14- I. 剪绳子
- 面试题19. 正则表达式匹配
- 面试题32 - II. 从上到下打印二叉树 II
- 面试题34. 二叉树中和为某一值的路径
- 面试题35. 复杂链表的复制
- 面试题37. 序列化二叉树
- 面试题41. 数据流中的中位数
- 面试题49. 丑数
- 面试题50. 第一个只出现一次的字符
- 面试题51. 数组中的逆序对
- 面试题52. 两个链表的第一个公共节点
- 面试题55 - II. 平衡二叉树
- 面试题59 - II. 队列的最大值
- 面试题65. 不用加减乘除做加法
- lcof2
- 剑指 Offer II 005. 单词长度的最大乘积
- 剑指 Offer II 007. 数组中和为 0 的三个数
- 剑指 Offer II 029. 排序的循环链表
- 剑指 Offer II 031. 最近最少使用缓存
- 剑指 Offer II 038. 每日温度
- 剑指 Offer II 040. 矩阵中最大的矩形
- 剑指 Offer II 041. 滑动窗口的平均值
- 剑指 Offer II 043. 往完全二叉树添加节点
- 剑指 Offer II 044. 二叉树每层的最大值
- 剑指 Offer II 049. 从根节点到叶节点的路径数字之和
- 剑指 Offer II 052. 展平二叉搜索树
- 剑指 Offer II 057. 值和下标之差都在给定的范围内
- 剑指 Offer II 058. 日程表
- 剑指 Offer II 062. 实现前缀树
- 剑指 Offer II 063. 替换单词
- 剑指 Offer II 065. 最短的单词编码
- 剑指 Offer II 067. 最大的异或
- 剑指 Offer II 072. 求平方根
- 剑指 Offer II 087. 复原 IP
- 剑指 Offer II 103. 最少的硬币数目
- 剑指 Offer II 105. 岛屿的最大面积
- 剑指 Offer II 106. 二分图
- 剑指 Offer II 108. 单词演变
- 剑指 Offer II 109. 开密码锁
- 剑指 Offer II 111. 计算除法
- 剑指 Offer II 112. 最长递增路径
- 剑指 Offer II 116. 朋友圈
- 剑指 Offer II 117. 相似的字符串
- 剑指 Offer II 118. 多余的边
- lcp/LCP 09. 最小跳跃次数
- lcs/LCS 03. 主题空间
- solution
- 0000-0099
- 0001.Two Sum
- 0007.Reverse Integer
- 0010.Regular Expression Matching
- 0012.Integer to Roman
- 0013.Roman to Integer
- 0014.Longest Common Prefix
- 0016.3Sum Closest
- 0024.Swap Nodes in Pairs
- 0026.Remove Duplicates from Sorted Array
- 0027.Remove Element
- 0028.Find the Index of the First Occurrence in a String
- 0030.Substring with Concatenation of All Words
- 0034.Find First and Last Position of Element in Sorted Array
- 0041.First Missing Positive
- 0058.Length of Last Word
- 0060.Permutation Sequence
- 0065.Valid Number
- 0069.Sqrt(x)
- 0070.Climbing Stairs
- 0071.Simplify Path
- 0074.Search a 2D Matrix
- 0076.Minimum Window Substring
- 0088.Merge Sorted Array
- 0091.Decode Ways
- 0092.Reverse Linked List II
- 0093.Restore IP Addresses
- 0097.Interleaving String
- 0099.Recover Binary Search Tree
- 0100-0199
- 0100.Same Tree
- 0102.Binary Tree Level Order Traversal
- 0104.Maximum Depth of Binary Tree
- 0109.Convert Sorted List to Binary Search Tree
- 0111.Minimum Depth of Binary Tree
- 0121.Best Time to Buy and Sell Stock
- 0125.Valid Palindrome
- 0127.Word Ladder
- 0129.Sum Root to Leaf Numbers
- 0130.Surrounded Regions
- 0136.Single Number
- 0137.Single Number II
- 0138.Copy List with Random Pointer
- 0139.Word Break
- 0146.LRU Cache
- 0155.Min Stack
- 0157.Read N Characters Given Read4
- 0158.Read N Characters Given read4 II - Call Multiple Times
- 0169.Majority Element
- 0170.Two Sum III - Data structure design
- 0174.Dungeon Game
- 0188.Best Time to Buy and Sell Stock IV
- 0198.House Robber
- 0200-0299
- 0200.Number of Islands
- 0208.Implement Trie (Prefix Tree)
- 0211.Design Add and Search Words Data Structure
- 0217.Contains Duplicate
- 0218.The Skyline Problem
- 0220.Contains Duplicate III
- 0225.Implement Stack using Queues
- 0227.Basic Calculator II
- 0229.Majority Element II
- 0230.Kth Smallest Element in a BST
- 0239.Sliding Window Maximum
- 0242.Valid Anagram
- 0244.Shortest Word Distance II
- 0254.Factor Combinations
- 0261.Graph Valid Tree
- 0263.Ugly Number
- 0264.Ugly Number II
- 0268.Missing Number
- 0271.Encode and Decode Strings
- 0274.H-Index
- 0277.Find the Celebrity
- 0283.Move Zeroes
- 0294.Flip Game II
- 0295.Find Median from Data Stream
- 0299.Bulls and Cows
- 0300-0399
- 0300.Longest Increasing Subsequence
- 0301.Remove Invalid Parentheses
- 0303.Range Sum Query - Immutable
- 0305.Number of Islands II
- 0306.Additive Number
- 0307.Range Sum Query - Mutable
- 0308.Range Sum Query 2D - Mutable
- 0315.Count of Smaller Numbers After Self
- 0318.Maximum Product of Word Lengths
- 0322.Coin Change
- 0323.Number of Connected Components in an Undirected Graph
- 0324.Wiggle Sort II
- 0327.Count of Range Sum
- 0328.Odd Even Linked List
- 0341.Flatten Nested List Iterator
- 0346.Moving Average from Data Stream
- 0349.Intersection of Two Arrays
- 0350.Intersection of Two Arrays II
- 0354.Russian Doll Envelopes
- 0365.Water and Jug Problem
- 0370.Range Addition
- 0371.Sum of Two Integers
- 0372.Super Pow
- 0373.Find K Pairs with Smallest Sums
- 0380.Insert Delete GetRandom O(1)
- 0383.Ransom Note
- 0385.Mini Parser
- 0387.First Unique Character in a String
- 0389.Find the Difference
- 0391.Perfect Rectangle
- 0392.Is Subsequence
- 0395.Longest Substring with At Least K Repeating Characters
- 0399.Evaluate Division
- 0400-0499
- 0402.Remove K Digits
- 0404.Sum of Left Leaves
- 0405.Convert a Number to Hexadecimal
- 0408.Valid Word Abbreviation
- 0412.Fizz Buzz
- 0414.Third Maximum Number
- 0421.Maximum XOR of Two Numbers in an Array
- 0429.N-ary Tree Level Order Traversal
- 0433.Minimum Genetic Mutation
- 0434.Number of Segments in a String
- 0438.Find All Anagrams in a String
- 0440.K-th Smallest in Lexicographical Order
- 0451.Sort Characters By Frequency
- 0460.LFU Cache
- 0472.Concatenated Words
- 0474.Ones and Zeroes
- 0476.Number Complement
- 0480.Sliding Window Median
- 0484.Find Permutation
- 0485.Max Consecutive Ones
- 0486.Predict the Winner
- 0490.The Maze
- 0493.Reverse Pairs
- 0496.Next Greater Element I
- 0499.The Maze III
- 0500-0599
- 0502.IPO
- 0503.Next Greater Element II
- 0505.The Maze II
- 0509.Fibonacci Number
- 0510.Inorder Successor in BST II
- 0513.Find Bottom Left Tree Value
- 0514.Freedom Trail
- 0515.Find Largest Value in Each Tree Row
- 0522.Longest Uncommon Subsequence II
- 0538.Convert BST to Greater Tree
- 0543.Diameter of Binary Tree
- 0544.Output Contest Matches
- 0547.Number of Provinces
- 0555.Split Concatenated Strings
- 0557.Reverse Words in a String III
- 0564.Find the Closest Palindrome
- 0565.Array Nesting
- 0566.Reshape the Matrix
- 0576.Out of Boundary Paths
- 0589.N-ary Tree Preorder Traversal
- 0590.N-ary Tree Postorder Traversal
- 0599.Minimum Index Sum of Two Lists
- 0600-0699
- 0604.Design Compressed String Iterator
- 0609.Find Duplicate File in System
- 0617.Merge Two Binary Trees
- 0623.Add One Row to Tree
- 0633.Sum of Square Numbers
- 0637.Average of Levels in Binary Tree
- 0643.Maximum Average Subarray I
- 0646.Maximum Length of Pair Chain
- 0648.Replace Words
- 0654.Maximum Binary Tree
- 0655.Print Binary Tree
- 0658.Find K Closest Elements
- 0669.Trim a Binary Search Tree
- 0673.Number of Longest Increasing Subsequence
- 0674.Longest Continuous Increasing Subsequence
- 0676.Implement Magic Dictionary
- 0677.Map Sum Pairs
- 0678.Valid Parenthesis String
- 0683.K Empty Slots
- 0684.Redundant Connection
- 0687.Longest Univalue Path
- 0691.Stickers to Spell Word
- 0695.Max Area of Island
- 0700-0799
- 0705.Design HashSet
- 0707.Design Linked List
- 0709.To Lower Case
- 0715.Range Module
- 0716.Max Stack
- 0721.Accounts Merge
- 0729.My Calendar I
- 0730.Count Different Palindromic Subsequences
- 0731.My Calendar II
- 0733.Flood Fill
- 0737.Sentence Similarity II
- 0738.Monotone Increasing Digits
- 0739.Daily Temperatures
- 0740.Delete and Earn
- 0743.Network Delay Time
- 0744.Find Smallest Letter Greater Than Target
- 0752.Open the Lock
- 0757.Set Intersection Size At Least Two
- 0761.Special Binary String
- 0762.Prime Number of Set Bits in Binary Representation
- 0765.Couples Holding Hands
- 0766.Toeplitz Matrix
- 0769.Max Chunks To Make Sorted
- 0771.Jewels and Stones
- 0773.Sliding Puzzle
- 0775.Global and Local Inversions
- 0776.Split BST
- 0778.Swim in Rising Water
- 0782.Transform to Chessboard
- 0784.Letter Case Permutation
- 0785.Is Graph Bipartite
- 0790.Domino and Tromino Tiling
- 0791.Custom Sort String
- 0792.Number of Matching Subsequences
- 0794.Valid Tic-Tac-Toe State
- 0795.Number of Subarrays with Bounded Maximum
- 0796.Rotate String
- 0800-0899
- 0802.Find Eventual Safe States
- 0803.Bricks Falling When Hit
- 0805.Split Array With Same Average
- 0809.Expressive Words
- 0811.Subdomain Visit Count
- 0815.Bus Routes
- 0820.Short Encoding of Words
- 0821.Shortest Distance to a Character
- 0827.Making A Large Island
- 0831.Masking Personal Information
- 0833.Find And Replace in String
- 0839.Similar String Groups
- 0850.Rectangle Area II
- 0855.Exam Room
- 0857.Minimum Cost to Hire K Workers
- 0864.Shortest Path to Get All Keys
- 0876.Middle of the Linked List
- 0878.Nth Magical Number
- 0879.Profitable Schemes
- 0884.Uncommon Words from Two Sentences
- 0886.Possible Bipartition
- 0888.Fair Candy Swap
- 0890.Find and Replace Pattern
- 0895.Maximum Frequency Stack
- 0900-0999
- 0901.Online Stock Span
- 0907.Sum of Subarray Minimums
- 0909.Snakes and Ladders
- 0913.Cat and Mouse
- 0919.Complete Binary Tree Inserter
- 0921.Minimum Add to Make Parentheses Valid
- 0924.Minimize Malware Spread
- 0928.Minimize Malware Spread II
- 0930.Binary Subarrays With Sum
- 0931.Minimum Falling Path Sum
- 0933.Number of Recent Calls
- 0935.Knight Dialer
- 0940.Distinct Subsequences II
- 0947.Most Stones Removed with Same Row or Column
- 0953.Verifying an Alien Dictionary
- 0958.Check Completeness of a Binary Tree
- 0959.Regions Cut By Slashes
- 0976.Largest Perimeter Triangle
- 0977.Squares of a Sorted Array
- 0980.Unique Paths III
- 0981.Time Based Key-Value Store
- 0990.Satisfiability of Equality Equations
- 0993.Cousins in Binary Tree
- 0998.Maximum Binary Tree II
- 1000-1099
- 1001.Grid Illumination
- 1019.Next Greater Node In Linked List
- 1032.Stream of Characters
- 1036.Escape a Large Maze
- 1038.Binary Search Tree to Greater Sum Tree
- 1039.Minimum Score Triangulation of Polygon
- 1047.Remove All Adjacent Duplicates In String
- 1051.Height Checker
- 1054.Distant Barcodes
- 1056.Confusing Number
- 1057.Campus Bikes
- 1059.All Paths from Source Lead to Destination
- 1061.Lexicographically Smallest Equivalent String
- 1066.Campus Bikes II
- 1067.Digit Count in Range
- 1089.Duplicate Zeros
- 1095.Find in Mountain Array
- 1096.Brace Expansion II
- 1100-1199
- 1106.Parsing A Boolean Expression
- 1109.Corporate Flight Bookings
- 1114.Print in Order
- 1115.Print FooBar Alternately
- 1116.Print Zero Even Odd
- 1134.Armstrong Number
- 1137.N-th Tribonacci Number
- 1139.Largest 1-Bordered Square
- 1146.Snapshot Array
- 1152.Analyze User Website Visit Pattern
- 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
- 1166.Design File System
- 1175.Prime Arrangements
- 1176.Diet Plan Performance
- 1181.Before and After Puzzle
- 1182.Shortest Distance to Target Color
- 1184.Distance Between Bus Stops
- 1185.Day of the Week
- 1188.Design Bounded Blocking Queue
- 1189.Maximum Number of Balloons
- 1197.Minimum Knight Moves
- 1200-1299
- 1201.Ugly Number III
- 1206.Design Skiplist
- 1208.Get Equal Substrings Within Budget
- 1213.Intersection of Three Sorted Arrays
- 1223.Dice Roll Simulation
- 1226.The Dining Philosophers
- 1229.Meeting Scheduler
- 1233.Remove Sub-Folders from the Filesystem
- 1235.Maximum Profit in Job Scheduling
- 1237.Find Positive Integer Solution for a Given Equation
- 1244.Design A Leaderboard
- 1249.Minimum Remove to Make Valid Parentheses
- 1252.Cells with Odd Values in a Matrix
- 1253.Reconstruct a 2-Row Binary Matrix
- 1254.Number of Closed Islands
- 1255.Maximum Score Words Formed by Letters
- 1261.Find Elements in a Contaminated Binary Tree
- 1266.Minimum Time Visiting All Points
- 1271.Hexspeak
- 1272.Remove Interval
- 1279.Traffic Light Controlled Intersection
- 1284.Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1287.Element Appearing More Than 25% In Sorted Array
- 1290.Convert Binary Number in a Linked List to Integer
- 1297.Maximum Number of Occurrences of a Substring
- 1300-1399
- 1302.Deepest Leaves Sum
- 1309.Decrypt String from Alphabet to Integer Mapping
- 1313.Decompress Run-Length Encoded List
- 1317.Convert Integer to the Sum of Two No-Zero Integers
- 1319.Number of Operations to Make Network Connected
- 1323.Maximum 69 Number
- 1334.Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1342.Number of Steps to Reduce a Number to Zero
- 1346.Check If N and Its Double Exist
- 1348.Tweet Counts Per Frequency
- 1352.Product of the Last K Numbers
- 1356.Sort Integers by The Number of 1 Bits
- 1357.Apply Discount Every n Orders
- 1376.Time Needed to Inform All Employees
- 1377.Frog Position After T Seconds
- 1380.Lucky Numbers in a Matrix
- 1388.Pizza With 3n Slices
- 1391.Check if There is a Valid Path in a Grid
- 1394.Find Lucky Integer in an Array
- 1395.Count Number of Teams
- 1396.Design Underground System
- 1400-1499
- 1401.Circle and Rectangle Overlapping
- 1409.Queries on a Permutation With Key
- 1411.Number of Ways to Paint N × 3 Grid
- 1424.Diagonal Traverse II
- 1426.Counting Elements
- 1429.First Unique Number
- 1431.Kids With the Greatest Number of Candies
- 1434.Number of Ways to Wear Different Hats to Each Other
- 1436.Destination City
- 1441.Build an Array With Stack Operations
- 1451.Rearrange Words in a Sentence
- 1455.Check If a Word Occurs As a Prefix of Any Word in a Sentence
- 1458.Max Dot Product of Two Subsequences
- 1460.Make Two Arrays Equal by Reversing Subarrays
- 1461.Check If a String Contains All Binary Codes of Size K
- 1464.Maximum Product of Two Elements in an Array
- 1465.Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- 1469.Find All The Lonely Nodes
- 1470.Shuffle the Array
- 1472.Design Browser History
- 1473.Paint House III
- 1475.Final Prices With a Special Discount in a Shop
- 1480.Running Sum of 1d Array
- 1483.Kth Ancestor of a Tree Node
- 1491.Average Salary Excluding the Minimum and Maximum Salary
- 1500-1599
- 1502.Can Make Arithmetic Progression From Sequence
- 1505.Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1507.Reformat Date
- 1508.Range Sum of Sorted Subarray Sums
- 1512.Number of Good Pairs
- 1514.Path with Maximum Probability
- 1518.Water Bottles
- 1522.Diameter of N-Ary Tree
- 1523.Count Odd Numbers in an Interval Range
- 1530.Number of Good Leaf Nodes Pairs
- 1534.Count Good Triplets
- 1550.Three Consecutive Odds
- 1559.Detect Cycles in 2D Grid
- 1561.Maximum Number of Coins You Can Get
- 1562.Find Latest Group of Size M
- 1572.Matrix Diagonal Sum
- 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
- 1588.Sum of All Odd Length Subarrays
- 1593.Split a String Into the Max Number of Unique Substrings
- 1598.Crawler Log Folder
- 1600-1699
- 1600.Throne Inheritance
- 1603.Design Parking System
- 1611.Minimum One Bit Operations to Make Integers Zero
- 1616.Split Two Strings to Make Palindrome
- 1617.Count Subtrees With Max Distance Between Cities
- 1619.Mean of Array After Removing Some Elements
- 1624.Largest Substring Between Two Equal Characters
- 1625.Lexicographically Smallest String After Applying Operations
- 1626.Best Team With No Conflicts
- 1628.Design an Expression Tree With Evaluate Function
- 1630.Arithmetic Subarrays
- 1631.Path With Minimum Effort
- 1638.Count Substrings That Differ by One Character
- 1644.Lowest Common Ancestor of a Binary Tree II
- 1649.Create Sorted Array through Instructions
- 1657.Determine if Two Strings Are Close
- 1658.Minimum Operations to Reduce X to Zero
- 1662.Check If Two String Arrays are Equivalent
- 1666.Change the Root of a Binary Tree
- 1668.Maximum Repeating Substring
- 1670.Design Front Middle Back Queue
- 1672.Richest Customer Wealth
- 1674.Minimum Moves to Make Array Complementary
- 1678.Goal Parser Interpretation
- 1682.Longest Palindromic Subsequence II
- 1684.Count the Number of Consistent Strings
- 1686.Stone Game VI
- 1687.Delivering Boxes from Storage to Ports
- 1689.Partitioning Into Minimum Number Of Deci-Binary Numbers
- 1697.Checking Existence of Edge Length Limited Paths
- 1700-1799
- 1700.Number of Students Unable to Eat Lunch
- 1702.Maximum Binary String After Change
- 1704.Determine if String Halves Are Alike
- 1708.Largest Subarray Length K
- 1711.Count Good Meals
- 1713.Minimum Operations to Make a Subsequence
- 1720.Decode XORed Array
- 1722.Minimize Hamming Distance After Swap Operations
- 1730.Shortest Path to Get Food
- 1732.Find the Highest Altitude
- 1733.Minimum Number of People to Teach
- 1748.Sum of Unique Elements
- 1750.Minimum Length of String After Deleting Similar Ends
- 1752.Check if Array Is Sorted and Rotated
- 1754.Largest Merge Of Two Strings
- 1756.Design Most Recently Used Queue
- 1758.Minimum Changes To Make Alternating Binary String
- 1759.Count Number of Homogenous Substrings
- 1763.Longest Nice Substring
- 1765.Map of Highest Peak
- 1768.Merge Strings Alternately
- 1769.Minimum Number of Operations to Move All Balls to Each Box
- 1773.Count Items Matching a Rule
- 1774.Closest Dessert Cost
- 1779.Find Nearest Point That Has the Same X or Y Coordinate
- 1782.Count Pairs Of Nodes
- 1785.Minimum Elements to Add to Form a Given Sum
- 1790.Check if One String Swap Can Make Strings Equal
- 1792.Maximum Average Pass Ratio
- 1796.Second Largest Digit in a String
- 1797.Design Authentication Manager
- 1799.Maximize Score After N Operations
- 1800-1899
- 1800.Maximum Ascending Subarray Sum
- 1802.Maximum Value at a Given Index in a Bounded Array
- 1803.Count Pairs With XOR in a Range
- 1805.Number of Different Integers in a String
- 1806.Minimum Number of Operations to Reinitialize a Permutation
- 1807.Evaluate the Bracket Pairs of a String
- 1812.Determine Color of a Chessboard Square
- 1822.Sign of the Product of an Array
- 1825.Finding MK Average
- 1826.Faulty Sensor
- 1827.Minimum Operations to Make the Array Increasing
- 1828.Queries on Number of Points Inside a Circle
- 1830.Minimum Number of Operations to Make String Sorted
- 1832.Check if the Sentence Is Pangram
- 1844.Replace All Digits with Characters
- 1845.Seat Reservation Manager
- 1858.Longest Word With All Prefixes
- 1865.Finding Pairs With a Certain Sum
- 1868.Product of Two Run-Length Encoded Arrays
- 1870.Minimum Speed to Arrive on Time
- 1876.Substrings of Size Three with Distinct Characters
- 1880.Check if Word Equals Summation of Two Words
- 1887.Reduction Operations to Make the Array Elements Equal
- 1894.Find the Student that Will Replace the Chalk
- 1898.Maximum Number of Removable Characters
- 1900-1999
- 1905.Count Sub Islands
- 1920.Build Array from Permutation
- 1922.Count Good Numbers
- 1925.Count Square Sum Triples
- 1926.Nearest Exit from Entrance in Maze
- 1929.Concatenation of Array
- 1930.Unique Length-3 Palindromic Subsequences
- 1940.Longest Common Subsequence Between Sorted Arrays
- 1941.Check if All Characters Have Equal Number of Occurrences
- 1944.Number of Visible People in a Queue
- 1945.Sum of Digits of String After Convert
- 1947.Maximum Compatibility Score Sum
- 1957.Delete Characters to Make Fancy String
- 1964.Find the Longest Valid Obstacle Course at Each Position
- 1970.Last Day Where You Can Still Cross
- 1971.Find if Path Exists in Graph
- 1980.Find Unique Binary String
- 1989.Maximum Number of People That Can Be Caught in Tag
- 1995.Count Special Quadruplets
- 1998.GCD Sort of an Array
- 2000-2099
- 2000.Reverse Prefix of Word
- 2006.Count Number of Pairs With Absolute Difference K
- 2008.Maximum Earnings From Taxi
- 2011.Final Value of Variable After Performing Operations
- 2013.Detect Squares
- 2027.Minimum Moves to Convert String
- 2031.Count Subarrays With More Ones Than Zeros
- 2032.Two Out of Three
- 2037.Minimum Number of Moves to Seat Everyone
- 2039.The Time When the Network Becomes Idle
- 2042.Check if Numbers Are Ascending in a Sentence
- 2044.Count Number of Maximum Bitwise-OR Subsets
- 2059.Minimum Operations to Convert Number
- 2068.Check Whether Two Strings are Almost Equivalent
- 2071.Maximum Number of Tasks You Can Assign
- 2078.Two Furthest Houses With Different Colors
- 2079.Watering Plants
- 2087.Minimum Cost Homecoming of a Robot in a Grid
- 2088.Count Fertile Pyramids in a Land
- 2100-2199
- 2101.Detonate the Maximum Bombs
- 2103.Rings and Rods
- 2104.Sum of Subarray Ranges
- 2106.Maximum Fruits Harvested After at Most K Steps
- 2108.Find First Palindromic String in the Array
- 2113.Elements in Array After Removing and Replacing Elements
- 2114.Maximum Number of Words Found in Sentences
- 2115.Find All Possible Recipes from Given Supplies
- 2120.Execution of All Suffix Instructions Staying in a Grid
- 2125.Number of Laser Beams in a Bank
- 2127.Maximum Employees to Be Invited to a Meeting
- 2130.Maximum Twin Sum of a Linked List
- 2145.Count the Hidden Sequences
- 2160.Minimum Sum of Four Digit Number After Splitting Digits
- 2174.Remove All Ones With Row and Column Flips II
- 2176.Count Equal and Divisible Pairs in an Array
- 2179.Count Good Triplets in an Array
- 2181.Merge Nodes in Between Zeros
- 2184.Number of Ways to Build Sturdy Brick Wall
- 2185.Counting Words With a Given Prefix
- 2187.Minimum Time to Complete Trips
- 2190.Most Frequent Number Following Key In an Array
- 2192.All Ancestors of a Node in a Directed Acyclic Graph
- 2200-2299
- 2208.Minimum Operations to Halve Array Sum
- 2215.Find the Difference of Two Arrays
- 2236.Root Equals Sum of Children
- 2241.Design an ATM Machine
- 2248.Intersection of Multiple Arrays
- 2259.Remove Digit From Number to Maximize Result
- 2261.K Divisible Elements Subarrays
- 2271.Maximum White Tiles Covered by a Carpet
- 2280.Minimum Lines to Represent a Line Chart
- 2281.Sum of Total Strength of Wizards
- 2283.Check if Number Has Equal Digit Count and Digit Value
- 2286.Booking Concert Tickets in Groups
- 2287.Rearrange Characters to Make Target String
- 2291.Maximum Profit From Trading Stocks
- 2293.Min Max Game
- 2296.Design a Text Editor
- 2299.Strong Password Checker II
- 2300-2399
- 2301.Match Substring After Replacement
- 2312.Selling Pieces of Wood
- 2315.Count Asterisks
- 2319.Check if Matrix Is X-Matrix
- 2325.Decode the Message
- 2331.Evaluate Boolean Binary Tree
- 2334.Subarray With Elements Greater Than Varying Threshold
- 2336.Smallest Number in Infinite Set
- 2338.Count the Number of Ideal Arrays
- 2341.Maximum Number of Pairs in Array
- 2347.Best Poker Hand
- 2351.First Letter to Appear Twice
- 2357.Make Array Zero by Subtracting Equal Amounts
- 2363.Merge Similar Items
- 2368.Reachable Nodes With Restrictions
- 2369.Check if There is a Valid Partition For The Array
- 2371.Minimize Maximum Value in a Grid
- 2373.Largest Local Values in a Matrix
- 2376.Count Special Integers
- 2379.Minimum Recolors to Get K Consecutive Black Blocks
- 2381.Shifting Letters II
- 2385.Amount of Time for Binary Tree to Be Infected
- 2390.Removing Stars From a String
- 2392.Build a Matrix With Conditions
- 2395.Find Subarrays With Equal Sum
- 2399.Check Distances Between Same Letters
- 2400-2499
- 2404.Most Frequent Even Element
- 2407.Longest Increasing Subsequence II
- 2408.Design SQL
- 2409.Count Days Spent Together
- 2414.Length of the Longest Alphabetical Continuous Substring
- 2416.Sum of Prefix Scores of Strings
- 2424.Longest Uploaded Prefix
- 2426.Number of Pairs Satisfying Inequality
- 2428.Maximum Sum of an Hourglass
- 2430.Maximum Deletions on a String
- 2431.Maximize Total Tastiness of Purchased Fruits
- 2432.The Employee That Worked on the Longest Task
- 2433.Find The Original Array of Prefix Xor
- 2437.Number of Valid Clock Times
- 2438.Range Product Queries of Powers
- 2439.Minimize Maximum of Array
- 2444.Count Subarrays With Fixed Bounds
- 2448.Minimum Cost to Make Array Equal
- 2455.Average Value of Even Numbers That Are Divisible by Three
- 2456.Most Popular Video Creator
- 2462.Total Cost to Hire K Workers
- 2467.Most Profitable Path in a Tree
- 2468.Split Message Based on Limit
- 2469.Convert the Temperature
- 2473.Minimum Cost to Buy Apples
- 2475.Number of Unequal Triplets in Array
- 2476.Closest Nodes Queries in a Binary Search Tree
- 2479.Maximum XOR of Two Non-Overlapping Subtrees
- 2482.Difference Between Ones and Zeros in Row and Column
- 2488.Count Subarrays With Median K
- 2496.Maximum Value of a String in an Array
- 2500-2599
- 2502.Design Memory Allocator
- 2515.Shortest Distance to Target String in a Circular Array
- 2519.Count the Number of K-Big Indices
- 2521.Distinct Prime Factors of Product of Array
- 2525.Categorize Box According to Criteria
- 2526.Find Consecutive Integers from a Data Stream
- 2529.Maximum Count of Positive Integer and Negative Integer
- 2533.Number of Good Binary Strings
- 2535.Difference Between Element Sum and Digit Sum of an Array
- 2536.Increment Submatrices by One
- 2540.Minimum Common Value
- 2541.Minimum Operations to Make Array Equal II
- 2546.Apply Bitwise Operations to Make Strings Equal
- 2548.Maximum Price to Fill a Bag
- 2552.Count Increasing Quadruplets
- 2553.Separate the Digits in an Array
- 2554.Maximum Number of Integers to Choose From a Range I
- 2562.Find the Array Concatenation Value
- 2563.Count the Number of Fair Pairs
- 2566.Maximum Difference by Remapping a Digit
- 2567.Minimum Score by Changing Two Elements
- 2574.Left and Right Sum Differences
- 2575.Find the Divisibility Array of a String
- 2586.Count the Number of Vowel Strings in Range
- 2589.Minimum Time to Complete All Tasks
- 2593.Find Score of an Array After Marking All Elements
- 2600-2699
- 2600.K Items With the Maximum Sum
- 2611.Mice and Cheese
- 2613.Beautiful Pairs
- 2641.Cousins in Binary Tree II
- 2642.Design Graph With Shortest Path Calculator
- 2646.Minimize the Total Price of the Trips
- 2655.Find Maximal Uncovered Ranges
- 2659.Make Array Empty
- 2660.Determine the Winner of a Bowling Game
- 2662.Minimum Cost of a Path With Special Roads
- 2671.Frequency Tracker
- 2689.Extract Kth Character From The Rope Tree
- 2700-2799
- 2702.Minimum Operations to Make Numbers Non-positive
- 2714.Find Shortest Path with K Hops
- 2731.Movement of Robots
- 2732.Find a Good Subset of the Matrix
- 2734.Lexicographically Smallest String After Substring Operation
- 2736.Maximum Sum Queries
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,359 files changed
+4118
-4886
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
| 11 | + | |
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
| 9 | + | |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
7 | 20 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 | 21 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
24 | 39 |
| |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 | 40 |
| |
37 | 41 |
| |
38 | 42 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 |
| |
18 | 20 |
| |
19 | 21 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
116 |
| - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
117 | 118 |
| |
118 | 119 |
| |
119 | 120 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
95 |
| - | |
96 |
| - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
97 | 98 |
| |
98 | 99 |
| |
99 | 100 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
| 66 | + | |
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
400 | 400 |
| |
401 | 401 |
| |
402 | 402 |
| |
403 |
| - | |
| 403 | + | |
404 | 404 |
| |
405 | 405 |
| |
406 |
| - | |
407 |
| - | |
| 406 | + | |
| 407 | + | |
408 | 408 |
| |
409 | 409 |
| |
410 | 410 |
| |
| |||
428 | 428 |
| |
429 | 429 |
| |
430 | 430 |
| |
431 |
| - | |
| 431 | + | |
432 | 432 |
| |
433 | 433 |
| |
434 | 434 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
408 |
| - | |
| 408 | + | |
409 | 409 |
| |
410 | 410 |
| |
411 |
| - | |
412 |
| - | |
| 411 | + | |
| 412 | + | |
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
| |||
433 | 433 |
| |
434 | 434 |
| |
435 | 435 |
| |
436 |
| - | |
| 436 | + | |
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
| 156 | + | |
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
180 |
| - | |
| 179 | + | |
| 180 | + | |
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
| 155 | + | |
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
179 |
| - | |
| 178 | + | |
| 179 | + | |
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
160 |
| - | |
161 |
| - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
172 |
| - | |
173 |
| - | |
174 |
| - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
163 |
| - | |
164 |
| - | |
| 163 | + | |
165 | 164 |
| |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
| 165 | + | |
| 166 | + | |
170 | 167 |
| |
171 | 168 |
| |
172 | 169 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
157 |
| - | |
| 156 | + | |
158 | 157 |
| |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
| 158 | + | |
| 159 | + | |
163 | 160 |
| |
164 | 161 |
| |
165 | 162 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
| 115 | + | |
| 116 | + | |
116 | 117 |
| |
117 | 118 |
| |
118 | 119 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
| 112 | + | |
| 113 | + | |
113 | 114 |
| |
114 | 115 |
| |
115 | 116 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
| 166 | + | |
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
| 149 | + | |
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
|
0 commit comments