File tree
2,416 files changed
+7787
-1276
lines changed- basic/sorting
- InsertionSort
- SelectionSort
- lcci
- 01.01.Is Unique
- 01.06.Compress String
- 01.07.Rotate Matrix
- 01.08.Zero Matrix
- 02.01.Remove Duplicate Node
- 02.02.Kth Node From End of List
- 02.03.Delete Middle Node
- 02.04.Partition List
- 02.05.Sum Lists
- 02.07.Intersection of Two Linked Lists
- 02.08.Linked List Cycle
- 03.01.Three in One
- 03.02.Min Stack
- 03.03.Stack of Plates
- 03.04.Implement Queue using Stacks
- 03.05.Sort of Stacks
- 03.06.Animal Shelter
- 04.01.Route Between Nodes
- 04.02.Minimum Height Tree
- 04.04.Check Balance
- 04.05.Legal Binary Search Tree
- 04.06.Successor
- 04.08.First Common Ancestor
- 04.09.BST Sequences
- 04.10.Check SubTree
- 04.12.Paths with Sum
- 05.01.Insert Into Bits
- 05.02.Bianry Number to String
- 05.03.Reverse Bits
- 05.04.Closed Number
- 05.06.Convert Integer
- 05.07.Exchange
- 05.08.Draw Line
- 08.02.Robot in a Grid
- 08.05.Recursive Mulitply
- 08.06.Hanota
- 08.08.Permutation II
- 08.10.Color Fill
- 08.11.Coin
- 08.13.Pile Box
- 08.14.Boolean Evaluation
- 10.03.Search Rotate Array
- 10.09.Sorted Matrix Search
- 10.10.Rank from Stream
- 10.11.Peaks and Valleys
- 16.02.Words Frequency
- 16.03.Intersection
- 16.04.Tic-Tac-Toe
- 16.05.Factorial Zeros
- 16.07.Maximum
- 16.08.English Int
- 16.09.Operations
- 16.13.Bisect Squares
- 16.14.Best Line
- 16.15.Master Mind
- 16.16.Sub Sort
- 16.17.Contiguous Sequence
- 16.18.Pattern Matching
- 16.19.Pond Sizes
- 16.20.T9
- 16.22.Langtons Ant
- 16.24.Pairs With Sum
- 16.25.LRU Cache
- 16.26.Calculator
- 17.01.Add Without Plus
- 17.05.Find Longest Subarray
- 17.06.Number Of 2s In Range
- 17.07.Baby Names
- 17.08.Circus Tower
- 17.09.Get Kth Magic Number
- 17.10.Find Majority Element
- 17.12.BiNode
- 17.13.Re-Space
- 17.14.Smallest K
- 17.15.Longest Word
- 17.18.Shortest Supersequence
- 17.19.Missing Two
- 17.20.Continuous Median
- 17.22.Word Transformer
- 17.23.Max Black Square
- 17.25.Word Rectangle
- 17.26.Sparse Similarity
- lcof
- 面试题06. 从尾到头打印链表
- 面试题07. 重建二叉树
- 面试题09. 用两个栈实现队列
- 面试题12. 矩阵中的路径
- 面试题13. 机器人的运动范围
- 面试题17. 打印从1到最大的n位数
- 面试题22. 链表中倒数第k个节点
- 面试题24. 反转链表
- 面试题25. 合并两个排序的链表
- 面试题26. 树的子结构
- 面试题27. 二叉树的镜像
- 面试题28. 对称的二叉树
- 面试题29. 顺时针打印矩阵
- 面试题30. 包含min函数的栈
- 面试题32 - I. 从上到下打印二叉树
- 面试题32 - II. 从上到下打印二叉树 II
- 面试题32 - III. 从上到下打印二叉树 III
- 面试题34. 二叉树中和为某一值的路径
- 面试题35. 复杂链表的复制
- 面试题36. 二叉搜索树与双向链表
- 面试题37. 序列化二叉树
- 面试题38. 字符串的排列
- 面试题39. 数组中出现次数超过一半的数字
- 面试题41. 数据流中的中位数
- 面试题43. 1~n整数中1出现的次数
- 面试题44. 数字序列中某一位的数字
- 面试题45. 把数组排成最小的数
- 面试题46. 把数字翻译成字符串
- 面试题51. 数组中的逆序对
- 面试题52. 两个链表的第一个公共节点
- 面试题54. 二叉搜索树的第k大节点
- 面试题55 - I. 二叉树的深度
- 面试题55 - II. 平衡二叉树
- 面试题56 - II. 数组中数字出现的次数 II
- 面试题61. 扑克牌中的顺子
- 面试题62. 圆圈中最后剩下的数字
- 面试题65. 不用加减乘除做加法
- 面试题67. 把字符串转换成整数
- 面试题68 - I. 二叉搜索树的最近公共祖先
- 面试题68 - II. 二叉树的最近公共祖先
- lcof2
- 剑指 Offer II 007. 数组中和为 0 的三个数
- 剑指 Offer II 013. 二维子矩阵的和
- 剑指 Offer II 014. 字符串中的变位词
- 剑指 Offer II 015. 字符串中的所有变位词
- 剑指 Offer II 017. 含有所有字符的最短字符串
- 剑指 Offer II 022. 链表中环的入口节点
- 剑指 Offer II 023. 两个链表的第一个重合节点
- 剑指 Offer II 024. 反转链表
- 剑指 Offer II 028. 展平多级双向链表
- 剑指 Offer II 029. 排序的循环链表
- 剑指 Offer II 031. 最近最少使用缓存
- 剑指 Offer II 034. 外星语言是否排序
- 剑指 Offer II 039. 直方图最大矩形面积
- 剑指 Offer II 041. 滑动窗口的平均值
- 剑指 Offer II 042. 最近请求次数
- 剑指 Offer II 048. 序列化与反序列化二叉树
- 剑指 Offer II 053. 二叉搜索树中的中序后继
- 剑指 Offer II 054. 所有大于等于节点的值之和
- 剑指 Offer II 055. 二叉搜索树迭代器
- 剑指 Offer II 058. 日程表
- 剑指 Offer II 059. 数据流的第 K 大数值
- 剑指 Offer II 061. 和最小的 k 个数对
- 剑指 Offer II 062. 实现前缀树
- 剑指 Offer II 064. 神奇的字典
- 剑指 Offer II 066. 单词之和
- 剑指 Offer II 071. 按权重生成随机数
- 剑指 Offer II 086. 分割回文子字符串
- 剑指 Offer II 092. 翻转字符
- 剑指 Offer II 096. 字符串交织
- 剑指 Offer II 105. 岛屿的最大面积
- 剑指 Offer II 106. 二分图
- 剑指 Offer II 111. 计算除法
- 剑指 Offer II 115. 重建序列
- 剑指 Offer II 116. 朋友圈
- 剑指 Offer II 117. 相似的字符串
- 剑指 Offer II 118. 多余的边
- lcp
- LCP 03. 机器人大冒险
- LCP 04. 覆盖
- LCP 05. 发 LeetCoin
- LCP 08. 剧情触发时间
- LCP 10. 二叉树任务调度
- LCP 11. 期望个数统计
- LCP 12. 小张刷题计划
- LCP 13. 寻宝
- LCP 14. 切分数组
- LCP 15. 游乐园的迷宫
- LCP 16. 游乐园的游览计划
- LCP 19. 秋叶收藏集
- LCP 20. 快速公交
- LCP 21. 追逐游戏
- LCP 22. 黑白方格画
- LCP 23. 魔术排列
- LCP 24. 数字游戏
- LCP 25. 古董键盘
- LCP 26. 导航装置
- LCP 27. 黑盒光线反射
- LCP 28. 采购方案
- LCP 29. 乐团站位
- LCP 30. 魔塔游戏
- LCP 31. 变换的迷宫
- LCP 32. 批量处理任务
- LCP 33. 蓄水
- LCP 34. 二叉树染色
- LCP 35. 电动车游城市
- LCP 36. 最多牌组数
- LCP 37. 最小矩形面积
- LCP 38. 守卫城堡
- LCP 39. 无人机方阵
- LCP 41. 黑白翻转棋
- LCP 42. 玩具套圈
- LCP 43. 十字路口的交通
- LCP 45. 自行车炫技赛场
- LCP 46. 志愿者调配
- LCP 47. 入场安检
- LCP 48. 无限棋局
- LCP 49. 环形闯关游戏
- lcs/LCS 03. 主题空间
- solution
- 0000-0099
- 0002.Add Two Numbers
- 0005.Longest Palindromic Substring
- 0007.Reverse Integer
- 0008.String to Integer (atoi)
- 0012.Integer to Roman
- 0013.Roman to Integer
- 0021.Merge Two Sorted Lists
- 0030.Substring with Concatenation of All Words
- 0031.Next Permutation
- 0032.Longest Valid Parentheses
- 0037.Sudoku Solver
- 0044.Wildcard Matching
- 0052.N-Queens II
- 0054.Spiral Matrix
- 0057.Insert Interval
- 0060.Permutation Sequence
- 0065.Valid Number
- 0066.Plus One
- 0072.Edit Distance
- 0076.Minimum Window Substring
- 0079.Word Search
- 0097.Interleaving String
- 0099.Recover Binary Search Tree
- 0100-0199
- 0105.Construct Binary Tree from Preorder and Inorder Traversal
- 0106.Construct Binary Tree from Inorder and Postorder Traversal
- 0108.Convert Sorted Array to Binary Search Tree
- 0109.Convert Sorted List to Binary Search Tree
- 0112.Path Sum
- 0116.Populating Next Right Pointers in Each Node
- 0117.Populating Next Right Pointers in Each Node II
- 0118.Pascal's Triangle
- 0126.Word Ladder II
- 0127.Word Ladder
- 0130.Surrounded Regions
- 0131.Palindrome Partitioning
- 0134.Gas Station
- 0135.Candy
- 0138.Copy List with Random Pointer
- 0141.Linked List Cycle
- 0142.Linked List Cycle II
- 0146.LRU Cache
- 0150.Evaluate Reverse Polish Notation
- 0155.Min Stack
- 0157.Read N Characters Given Read4
- 0158.Read N Characters Given read4 II - Call Multiple Times
- 0160.Intersection of Two Linked Lists
- 0161.One Edit Distance
- 0163.Missing Ranges
- 0169.Majority Element
- 0170.Two Sum III - Data structure design
- 0173.Binary Search Tree Iterator
- 0174.Dungeon Game
- 0186.Reverse Words in a String II
- 0187.Repeated DNA Sequences
- 0188.Best Time to Buy and Sell Stock IV
- 0190.Reverse Bits
- 0200-0299
- 0201.Bitwise AND of Numbers Range
- 0202.Happy Number
- 0208.Implement Trie (Prefix Tree)
- 0211.Design Add and Search Words Data Structure
- 0213.House Robber II
- 0218.The Skyline Problem
- 0223.Rectangle Area
- 0224.Basic Calculator
- 0225.Implement Stack using Queues
- 0232.Implement Queue using Stacks
- 0233.Number of Digit One
- 0235.Lowest Common Ancestor of a Binary Search Tree
- 0236.Lowest Common Ancestor of a Binary Tree
- 0237.Delete Node in a Linked List
- 0241.Different Ways to Add Parentheses
- 0244.Shortest Word Distance II
- 0246.Strobogrammatic Number
- 0248.Strobogrammatic Number III
- 0251.Flatten 2D Vector
- 0254.Factor Combinations
- 0261.Graph Valid Tree
- 0265.Paint House II
- 0267.Palindrome Permutation II
- 0268.Missing Number
- 0271.Encode and Decode Strings
- 0273.Integer to English Words
- 0276.Paint Fence
- 0277.Find the Celebrity
- 0278.First Bad Version
- 0280.Wiggle Sort
- 0282.Expression Add Operators
- 0284.Peeking Iterator
- 0285.Inorder Successor in BST
- 0286.Walls and Gates
- 0288.Unique Word Abbreviation
- 0289.Game of Life
- 0291.Word Pattern II
- 0295.Find Median from Data Stream
- 0296.Best Meeting Point
- 0297.Serialize and Deserialize Binary Tree
- 0300-0399
- 0303.Range Sum Query - Immutable
- 0304.Range Sum Query 2D - Immutable
- 0305.Number of Islands II
- 0306.Additive Number
- 0307.Range Sum Query - Mutable
- 0308.Range Sum Query 2D - Mutable
- 0312.Burst Balloons
- 0313.Super Ugly Number
- 0316.Remove Duplicate Letters
- 0317.Shortest Distance from All Buildings
- 0319.Bulb Switcher
- 0320.Generalized Abbreviation
- 0321.Create Maximum Number
- 0326.Power of Three
- 0330.Patching Array
- 0331.Verify Preorder Serialization of a Binary Tree
- 0332.Reconstruct Itinerary
- 0335.Self Crossing
- 0336.Palindrome Pairs
- 0339.Nested List Weight Sum
- 0340.Longest Substring with At Most K Distinct Characters
- 0341.Flatten Nested List Iterator
- 0342.Power of Four
- 0346.Moving Average from Data Stream
- 0348.Design Tic-Tac-Toe
- 0351.Android Unlock Patterns
- 0352.Data Stream as Disjoint Intervals
- 0353.Design Snake Game
- 0355.Design Twitter
- 0357.Count Numbers with Unique Digits
- 0358.Rearrange String k Distance Apart
- 0359.Logger Rate Limiter
- 0360.Sort Transformed Array
- 0361.Bomb Enemy
- 0362.Design Hit Counter
- 0363.Max Sum of Rectangle No Larger Than K
- 0364.Nested List Weight Sum II
- 0365.Water and Jug Problem
- 0371.Sum of Two Integers
- 0373.Find K Pairs with Smallest Sums
- 0374.Guess Number Higher or Lower
- 0378.Kth Smallest Element in a Sorted Matrix
- 0379.Design Phone Directory
- 0380.Insert Delete GetRandom O(1)
- 0381.Insert Delete GetRandom O(1) - Duplicates allowed
- 0382.Linked List Random Node
- 0384.Shuffle an Array
- 0395.Longest Substring with At Least K Repeating Characters
- 0398.Random Pick Index
- 0399.Evaluate Division
- 0400-0499
- 0401.Binary Watch
- 0402.Remove K Digits
- 0403.Frog Jump
- 0404.Sum of Left Leaves
- 0405.Convert a Number to Hexadecimal
- 0408.Valid Word Abbreviation
- 0411.Minimum Unique Word Abbreviation
- 0417.Pacific Atlantic Water Flow
- 0418.Sentence Screen Fitting
- 0422.Valid Word Square
- 0427.Construct Quad Tree
- 0428.Serialize and Deserialize N-ary Tree
- 0430.Flatten a Multilevel Doubly Linked List
- 0431.Encode N-ary Tree to Binary Tree
- 0432.All O`one Data Structure
- 0433.Minimum Genetic Mutation
- 0439.Ternary Expression Parser
- 0444.Sequence Reconstruction
- 0446.Arithmetic Slices II - Subsequence
- 0449.Serialize and Deserialize BST
- 0454.4Sum II
- 0455.Assign Cookies
- 0459.Repeated Substring Pattern
- 0460.LFU Cache
- 0463.Island Perimeter
- 0465.Optimal Account Balancing
- 0466.Count The Repetitions
- 0468.Validate IP Address
- 0469.Convex Polygon
- 0470.Implement Rand10() Using Rand7()
- 0471.Encode String with Shortest Length
- 0472.Concatenated Words
- 0476.Number Complement
- 0478.Generate Random Point in a Circle
- 0480.Sliding Window Median
- 0481.Magical String
- 0483.Smallest Good Base
- 0484.Find Permutation
- 0486.Predict the Winner
- 0489.Robot Room Cleaner
- 0490.The Maze
- 0493.Reverse Pairs
- 0497.Random Point in Non-overlapping Rectangles
- 0499.The Maze III
- 0500-0599
- 0502.IPO
- 0505.The Maze II
- 0514.Freedom Trail
- 0517.Super Washing Machines
- 0519.Random Flip Matrix
- 0528.Random Pick with Weight
- 0529.Minesweeper
- 0535.Encode and Decode TinyURL
- 0536.Construct Binary Tree from String
- 0538.Convert BST to Greater Tree
- 0541.Reverse String II
- 0545.Boundary of Binary Tree
- 0546.Remove Boxes
- 0547.Number of Provinces
- 0552.Student Attendance Record II
- 0554.Brick Wall
- 0555.Split Concatenated Strings
- 0559.Maximum Depth of N-ary Tree
- 0562.Longest Line of Consecutive One in Matrix
- 0564.Find the Closest Palindrome
- 0567.Permutation in String
- 0568.Maximum Vacation Days
- 0571.Find Median Given Frequency of Numbers
- 0572.Subtree of Another Tree
- 0573.Squirrel Simulation
- 0576.Out of Boundary Paths
- 0588.Design In-Memory File System
- 0590.N-ary Tree Postorder Traversal
- 0592.Fraction Addition and Subtraction
- 0600-0699
- 0600.Non-negative Integers without Consecutive Ones
- 0601.Human Traffic of Stadium
- 0604.Design Compressed String Iterator
- 0605.Can Place Flowers
- 0616.Add Bold Tag in String
- 0621.Task Scheduler
- 0623.Add One Row to Tree
- 0624.Maximum Distance in Arrays
- 0625.Minimum Factorization
- 0628.Maximum Product of Three Numbers
- 0631.Design Excel Sum Formula
- 0632.Smallest Range Covering Elements from K Lists
- 0634.Find the Derangement of An Array
- 0635.Design Log Storage System
- 0638.Shopping Offers
- 0640.Solve the Equation
- 0641.Design Circular Deque
- 0642.Design Search Autocomplete System
- 0643.Maximum Average Subarray I
- 0644.Maximum Average Subarray II
- 0645.Set Mismatch
- 0649.Dota2 Senate
- 0650.2 Keys Keyboard
- 0651.4 Keys Keyboard
- 0652.Find Duplicate Subtrees
- 0656.Coin Path
- 0659.Split Array into Consecutive Subsequences
- 0660.Remove 9
- 0664.Strange Printer
- 0665.Non-decreasing Array
- 0667.Beautiful Arrangement II
- 0669.Trim a Binary Search Tree
- 0672.Bulb Switcher II
- 0675.Cut Off Trees for Golf Event
- 0676.Implement Magic Dictionary
- 0677.Map Sum Pairs
- 0679.24 Game
- 0683.K Empty Slots
- 0684.Redundant Connection
- 0688.Knight Probability in Chessboard
- 0690.Employee Importance
- 0695.Max Area of Island
- 0700-0799
- 0700.Search in a Binary Search Tree
- 0702.Search in a Sorted Array of Unknown Size
- 0703.Kth Largest Element in a Stream
- 0705.Design HashSet
- 0706.Design HashMap
- 0707.Design Linked List
- 0708.Insert into a Sorted Circular Linked List
- 0709.To Lower Case
- 0710.Random Pick with Blacklist
- 0712.Minimum ASCII Delete Sum for Two Strings
- 0715.Range Module
- 0716.Max Stack
- 0721.Accounts Merge
- 0722.Remove Comments
- 0723.Candy Crush
- 0725.Split Linked List in Parts
- 0726.Number of Atoms
- 0727.Minimum Window Subsequence
- 0728.Self Dividing Numbers
- 0729.My Calendar I
- 0732.My Calendar III
- 0733.Flood Fill
- 0734.Sentence Similarity
- 0737.Sentence Similarity II
- 0738.Monotone Increasing Digits
- 0741.Cherry Pickup
- 0743.Network Delay Time
- 0745.Prefix and Suffix Search
- 0750.Number Of Corner Rectangles
- 0751.IP to CIDR
- 0752.Open the Lock
- 0753.Cracking the Safe
- 0754.Reach a Number
- 0755.Pour Water
- 0756.Pyramid Transition Matrix
- 0758.Bold Words in String
- 0759.Employee Free Time
- 0761.Special Binary String
- 0764.Largest Plus Sign
- 0765.Couples Holding Hands
- 0770.Basic Calculator IV
- 0772.Basic Calculator III
- 0774.Minimize Max Distance to Gas Station
- 0775.Global and Local Inversions
- 0776.Split BST
- 0777.Swap Adjacent in LR String
- 0778.Swim in Rising Water
- 0782.Transform to Chessboard
- 0785.Is Graph Bipartite
- 0787.Cheapest Flights Within K Stops
- 0788.Rotated Digits
- 0789.Escape The Ghosts
- 0790.Domino and Tromino Tiling
- 0792.Number of Matching Subsequences
- 0793.Preimage Size of Factorial Zeroes Function
- 0794.Valid Tic-Tac-Toe State
- 0795.Number of Subarrays with Bounded Maximum
- 0799.Champagne Tower
- 0800-0899
- 0801.Minimum Swaps To Make Sequences Increasing
- 0803.Bricks Falling When Hit
- 0804.Unique Morse Code Words
- 0805.Split Array With Same Average
- 0807.Max Increase to Keep City Skyline
- 0808.Soup Servings
- 0809.Expressive Words
- 0810.Chalkboard XOR Game
- 0813.Largest Sum of Averages
- 0815.Bus Routes
- 0816.Ambiguous Coordinates
- 0818.Race Car
- 0823.Binary Trees With Factors
- 0825.Friends Of Appropriate Ages
- 0826.Most Profit Assigning Work
- 0827.Making A Large Island
- 0828.Count Unique Characters of All Substrings of a Given String
- 0830.Positions of Large Groups
- 0831.Masking Personal Information
- 0833.Find And Replace in String
- 0834.Sum of Distances in Tree
- 0835.Image Overlap
- 0836.Rectangle Overlap
- 0837.New 21 Game
- 0839.Similar String Groups
- 0840.Magic Squares In Grid
- 0842.Split Array into Fibonacci Sequence
- 0843.Guess the Word
- 0848.Shifting Letters
- 0849.Maximize Distance to Closest Person
- 0850.Rectangle Area II
- 0853.Car Fleet
- 0854.K-Similar Strings
- 0855.Exam Room
- 0856.Score of Parentheses
- 0857.Minimum Cost to Hire K Workers
- 0858.Mirror Reflection
- 0863.All Nodes Distance K in Binary Tree
- 0864.Shortest Path to Get All Keys
- 0871.Minimum Number of Refueling Stops
- 0877.Stone Game
- 0878.Nth Magical Number
- 0879.Profitable Schemes
- 0880.Decoded String at Index
- 0882.Reachable Nodes In Subdivided Graph
- 0885.Spiral Matrix III
- 0886.Possible Bipartition
- 0887.Super Egg Drop
- 0889.Construct Binary Tree from Preorder and Postorder Traversal
- 0891.Sum of Subsequence Widths
- 0895.Maximum Frequency Stack
- 0900-0999
- 0900.RLE Iterator
- 0901.Online Stock Span
- 0902.Numbers At Most N Given Digit Set
- 0903.Valid Permutations for DI Sequence
- 0906.Super Palindromes
- 0910.Smallest Range II
- 0911.Online Election
- 0915.Partition Array into Disjoint Intervals
- 0916.Word Subsets
- 0920.Number of Music Playlists
- 0923.3Sum With Multiplicity
- 0924.Minimize Malware Spread
- 0926.Flip String to Monotone Increasing
- 0928.Minimize Malware Spread II
- 0933.Number of Recent Calls
- 0936.Stamping The Sequence
- 0939.Minimum Area Rectangle
- 0940.Distinct Subsequences II
- 0943.Find the Shortest Superstring
- 0947.Most Stones Removed with Same Row or Column
- 0948.Bag of Tokens
- 0949.Largest Time for Given Digits
- 0950.Reveal Cards In Increasing Order
- 0951.Flip Equivalent Binary Trees
- 0955.Delete Columns to Make Sorted II
- 0956.Tallest Billboard
- 0957.Prison Cells After N Days
- 0959.Regions Cut By Slashes
- 0963.Minimum Area Rectangle II
- 0964.Least Operators to Express Number
- 0966.Vowel Spellchecker
- 0971.Flip Binary Tree To Match Preorder Traversal
- 0972.Equal Rational Numbers
- 0973.K Closest Points to Origin
- 0975.Odd Even Jump
- 0978.Longest Turbulent Subarray
- 0980.Unique Paths III
- 0981.Time Based Key-Value Store
- 0982.Triples with Bitwise AND Equal To Zero
- 0983.Minimum Cost For Tickets
- 0984.String Without AAA or BBB
- 0985.Sum of Even Numbers After Queries
- 0986.Interval List Intersections
- 0990.Satisfiability of Equality Equations
- 0991.Broken Calculator
- 0992.Subarrays with K Different Integers
- 0995.Minimum Number of K Consecutive Bit Flips
- 0996.Number of Squareful Arrays
- 1000-1099
- 1000.Minimum Cost to Merge Stones
- 1001.Grid Illumination
- 1003.Check If Word Is Valid After Substitutions
- 1005.Maximize Sum Of Array After K Negations
- 1007.Minimum Domino Rotations For Equal Row
- 1009.Complement of Base 10 Integer
- 1010.Pairs of Songs With Total Durations Divisible by 60
- 1012.Numbers With Repeated Digits
- 1013.Partition Array Into Three Parts With Equal Sum
- 1015.Smallest Integer Divisible by K
- 1017.Convert to Base -2
- 1018.Binary Prefix Divisible By 5
- 1019.Next Greater Node In Linked List
- 1020.Number of Enclaves
- 1023.Camelcase Matching
- 1024.Video Stitching
- 1028.Recover a Tree From Preorder Traversal
- 1030.Matrix Cells in Distance Order
- 1032.Stream of Characters
- 1034.Coloring A Border
- 1036.Escape a Large Maze
- 1039.Minimum Score Triangulation of Polygon
- 1040.Moving Stones Until Consecutive II
- 1041.Robot Bounded In Circle
- 1043.Partition Array for Maximum Sum
- 1044.Longest Duplicate Substring
- 1048.Longest String Chain
- 1049.Last Stone Weight II
- 1052.Grumpy Bookstore Owner
- 1053.Previous Permutation With One Swap
- 1054.Distant Barcodes
- 1055.Shortest Way to Form String
- 1056.Confusing Number
- 1057.Campus Bikes
- 1058.Minimize Rounding Error to Meet Target
- 1059.All Paths from Source Lead to Destination
- 1060.Missing Element in Sorted Array
- 1061.Lexicographically Smallest Equivalent String
- 1062.Longest Repeating Substring
- 1063.Number of Valid Subarrays
- 1065.Index Pairs of a String
- 1066.Campus Bikes II
- 1067.Digit Count in Range
- 1073.Adding Two Negabinary Numbers
- 1074.Number of Submatrices That Sum to Target
- 1078.Occurrences After Bigram
- 1081.Smallest Subsequence of Distinct Characters
- 1087.Brace Expansion
- 1088.Confusing Number II
- 1090.Largest Values From Labels
- 1092.Shortest Common Supersequence
- 1093.Statistics from a Large Sample
- 1095.Find in Mountain Array
- 1096.Brace Expansion II
- 1098.Unpopular Books
- 1100-1199
- 1101.The Earliest Moment When Everyone Become Friends
- 1104.Path In Zigzag Labelled Binary Tree
- 1106.Parsing A Boolean Expression
- 1110.Delete Nodes And Return Forest
- 1116.Print Zero Even Odd
- 1117.Building H2O
- 1118.Number of Days in a Month
- 1121.Divide Array Into Increasing Sequences
- 1125.Smallest Sufficient Team
- 1129.Shortest Path with Alternating Colors
- 1130.Minimum Cost Tree From Leaf Values
- 1131.Maximum of Absolute Value Expression
- 1138.Alphabet Board Path
- 1139.Largest 1-Bordered Square
- 1140.Stone Game II
- 1144.Decrease Elements To Make Array Zigzag
- 1145.Binary Tree Coloring Game
- 1146.Snapshot Array
- 1147.Longest Chunked Palindrome Decomposition
- 1151.Minimum Swaps to Group All 1's Together
- 1152.Analyze User Website Visit Pattern
- 1153.String Transforms Into Another String
- 1155.Number of Dice Rolls With Target Sum
- 1156.Swap For Longest Repeated Character Substring
- 1157.Online Majority Element In Subarray
- 1162.As Far from Land as Possible
- 1163.Last Substring in Lexicographical Order
- 1166.Design File System
- 1168.Optimize Water Distribution in a Village
- 1169.Invalid Transactions
- 1170.Compare Strings by Frequency of the Smallest Character
- 1171.Remove Zero Sum Consecutive Nodes from Linked List
- 1172.Dinner Plate Stacks
- 1176.Diet Plan Performance
- 1177.Can Make Palindrome from Substring
- 1178.Number of Valid Words for Each Puzzle
- 1179.Reformat Department Table
- 1182.Shortest Distance to Target Color
- 1183.Maximum Number of Ones
- 1184.Distance Between Bus Stops
- 1186.Maximum Subarray Sum with One Deletion
- 1187.Make Array Strictly Increasing
- 1191.K-Concatenation Maximum Sum
- 1192.Critical Connections in a Network
- 1195.Fizz Buzz Multithreaded
- 1199.Minimum Time to Build Blocks
- 1200-1299
- 1201.Ugly Number III
- 1202.Smallest String With Swaps
- 1203.Sort Items by Groups Respecting Dependencies
- 1209.Remove All Adjacent Duplicates in String II
- 1210.Minimum Moves to Reach Target with Rotations
- 1213.Intersection of Three Sorted Arrays
- 1216.Valid Palindrome III
- 1219.Path with Maximum Gold
- 1220.Count Vowels Permutation
- 1222.Queens That Can Attack the King
- 1223.Dice Roll Simulation
- 1224.Maximum Equal Frequency
- 1226.The Dining Philosophers
- 1227.Airplane Seat Assignment Probability
- 1229.Meeting Scheduler
- 1231.Divide Chocolate
- 1232.Check If It Is a Straight Line
- 1235.Maximum Profit in Job Scheduling
- 1236.Web Crawler
- 1237.Find Positive Integer Solution for a Given Equation
- 1238.Circular Permutation in Binary Representation
- 1240.Tiling a Rectangle with the Fewest Squares
- 1242.Web Crawler Multithreaded
- 1244.Design A Leaderboard
- 1246.Palindrome Removal
- 1247.Minimum Swaps to Make Strings Equal
- 1248.Count Number of Nice Subarrays
- 1249.Minimum Remove to Make Valid Parentheses
- 1250.Check If It Is a Good Array
- 1253.Reconstruct a 2-Row Binary Matrix
- 1254.Number of Closed Islands
- 1255.Maximum Score Words Formed by Letters
- 1256.Encode Number
- 1257.Smallest Common Region
- 1259.Handshakes That Don't Cross
- 1260.Shift 2D Grid
- 1261.Find Elements in a Contaminated Binary Tree
- 1262.Greatest Sum Divisible by Three
- 1263.Minimum Moves to Move a Box to Their Target Location
- 1265.Print Immutable Linked List in Reverse
- 1268.Search Suggestions System
- 1269.Number of Ways to Stay in the Same Place After Some Steps
- 1271.Hexspeak
- 1272.Remove Interval
- 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
- 1277.Count Square Submatrices with All Ones
- 1278.Palindrome Partitioning III
- 1282.Group the People Given the Group Size They Belong To
- 1284.Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1286.Iterator for Combination
- 1289.Minimum Falling Path Sum II
- 1290.Convert Binary Number in a Linked List to Integer
- 1291.Sequential Digits
- 1292.Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1297.Maximum Number of Occurrences of a Substring
- 1298.Maximum Candies You Can Get from Boxes
- 1300-1399
- 1300.Sum of Mutated Array Closest to Target
- 1301.Number of Paths with Max Score
- 1307.Verbal Arithmetic Puzzle
- 1309.Decrypt String from Alphabet to Integer Mapping
- 1311.Get Watched Videos by Your Friends
- 1312.Minimum Insertion Steps to Make a String Palindrome
- 1314.Matrix Block Sum
- 1317.Convert Integer to the Sum of Two No-Zero Integers
- 1319.Number of Operations to Make Network Connected
- 1320.Minimum Distance to Type a Word Using Two Fingers
- 1325.Delete Leaves With a Given Value
- 1326.Minimum Number of Taps to Open to Water a Garden
- 1328.Break a Palindrome
- 1330.Reverse Subarray To Maximize Array Value
- 1333.Filter Restaurants by Vegan-Friendly, Price and Distance
- 1334.Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1335.Minimum Difficulty of a Job Schedule
- 1339.Maximum Product of Splitted Binary Tree
- 1340.Jump Game V
- 1343.Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
- 1344.Angle Between Hands of a Clock
- 1348.Tweet Counts Per Frequency
- 1349.Maximum Students Taking Exam
- 1352.Product of the Last K Numbers
- 1353.Maximum Number of Events That Can Be Attended
- 1354.Construct Target Array With Multiple Sums
- 1356.Sort Integers by The Number of 1 Bits
- 1357.Apply Discount Every n Orders
- 1358.Number of Substrings Containing All Three Characters
- 1359.Count All Valid Pickup and Delivery Options
- 1360.Number of Days Between Two Dates
- 1361.Validate Binary Tree Nodes
- 1362.Closest Divisors
- 1363.Largest Multiple of Three
- 1367.Linked List in Binary Tree
- 1371.Find the Longest Substring Containing Vowels in Even Counts
- 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
- 1381.Design a Stack With Increment Operation
- 1383.Maximum Performance of a Team
- 1387.Sort Integers by The Power Value
- 1388.Pizza With 3n Slices
- 1390.Four Divisors
- 1391.Check if There is a Valid Path in a Grid
- 1396.Design Underground System
- 1397.Find All Good Strings
- 1400-1499
- 1401.Circle and Rectangle Overlapping
- 1405.Longest Happy String
- 1406.Stone Game III
- 1416.Restore The Array
- 1420.Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1422.Maximum Score After Splitting a String
- 1424.Diagonal Traverse II
- 1427.Perform String Shifts
- 1428.Leftmost Column with at Least a One
- 1429.First Unique Number
- 1432.Max Difference You Can Get From Changing an Integer
- 1436.Destination City
- 1437.Check If All 1's Are at Least Length K Places Away
- 1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1439.Find the Kth Smallest Sum of a Matrix With Sorted Rows
- 1444.Number of Ways of Cutting a Pizza
- 1447.Simplified Fractions
- 1449.Form Largest Integer With Digits That Add up to Target
- 1450.Number of Students Doing Homework at a Given Time
- 1451.Rearrange Words in a Sentence
- 1452.People Whose List of Favorite Companies Is Not a Subset of Another List
- 1453.Maximum Number of Darts Inside of a Circular Dartboard
- 1456.Maximum Number of Vowels in a Substring of Given Length
- 1458.Max Dot Product of Two Subsequences
- 1461.Check If a String Contains All Binary Codes of Size K
- 1462.Course Schedule IV
- 1463.Cherry Pickup II
- 1465.Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- 1467.Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1469.Find All The Lonely Nodes
- 1472.Design Browser History
- 1473.Paint House III
- 1476.Subrectangle Queries
- 1477.Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1478.Allocate Mailboxes
- 1483.Kth Ancestor of a Tree Node
- 1485.Clone Binary Tree With Random Pointer
- 1486.XOR Operation in an Array
- 1487.Making File Names Unique
- 1488.Avoid Flood in The City
- 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
- 1493.Longest Subarray of 1's After Deleting One Element
- 1494.Parallel Courses II
- 1498.Number of Subsequences That Satisfy the Given Sum Condition
- 1500-1599
- 1500.Design a File Sharing System
- 1504.Count Submatrices With All Ones
- 1506.Find Root of N-Ary Tree
- 1507.Reformat Date
- 1508.Range Sum of Sorted Subarray Sums
- 1509.Minimum Difference Between Largest and Smallest Value in Three Moves
- 1510.Stone Game IV
- 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
- 1520.Maximum Number of Non-Overlapping Substrings
- 1521.Find a Value of a Mysterious Function Closest to Target
- 1522.Diameter of N-Ary Tree
- 1525.Number of Good Ways to Split a String
- 1526.Minimum Number of Increments on Subarrays to Form a Target Array
- 1529.Minimum Suffix Flips
- 1530.Number of Good Leaf Nodes Pairs
- 1531.String Compression II
- 1533.Find the Index of the Large Integer
- 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
- 1538.Guess the Majority in a Hidden Array
- 1540.Can Convert String in K Moves
- 1541.Minimum Insertions to Balance a Parentheses String
- 1542.Find Longest Awesome Substring
- 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
- 1550.Three Consecutive Odds
- 1551.Minimum Operations to Make Array Equal
- 1554.Strings Differ by One Character
- 1555.Bank Account Summary
- 1556.Thousand Separator
- 1559.Detect Cycles in 2D Grid
- 1563.Stone Game V
- 1564.Put Boxes Into the Warehouse I
- 1565.Unique Orders and Customers Per Month
- 1566.Detect Pattern of Length M Repeated K or More Times
- 1568.Minimum Number of Days to Disconnect Island
- 1569.Number of Ways to Reorder Array to Get Same BST
- 1571.Warehouse Manager
- 1573.Number of Ways to Split a String
- 1574.Shortest Subarray to be Removed to Make Array Sorted
- 1575.Count All Possible Routes
- 1577.Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 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
- 1583.Count Unhappy Friends
- 1584.Min Cost to Connect All Points
- 1585.Check If String Is Transformable With Substring Sort Operations
- 1586.Binary Search Tree Iterator II
- 1590.Make Sum Divisible by P
- 1591.Strange Printer II
- 1592.Rearrange Spaces Between Words
- 1593.Split a String Into the Max Number of Unique Substrings
- 1594.Maximum Non Negative Product in a Matrix
- 1595.Minimum Cost to Connect Two Groups of Points
- 1596.The Most Frequently Ordered Products for Each Customer
- 1597.Build Binary Expression Tree From Infix Expression
- 1598.Crawler Log Folder
- 1599.Maximum Profit of Operating a Centennial Wheel
- 1600-1699
- 1600.Throne Inheritance
- 1603.Design Parking System
- 1604.Alert Using Same Key-Card Three or More Times in a One Hour Period
- 1609.Even Odd Tree
- 1610.Maximum Number of Visible Points
- 1611.Minimum One Bit Operations to Make Integers Zero
- 1615.Maximal Network Rank
- 1616.Split Two Strings to Make Palindrome
- 1617.Count Subtrees With Max Distance Between Cities
- 1618.Maximum Font to Fit a Sentence in a Screen
- 1619.Mean of Array After Removing Some Elements
- 1620.Coordinate With Maximum Network Quality
- 1621.Number of Sets of K Non-Overlapping Line Segments
- 1622.Fancy Sequence
- 1624.Largest Substring Between Two Equal Characters
- 1627.Graph Connectivity With Threshold
- 1628.Design an Expression Tree With Evaluate Function
- 1630.Arithmetic Subarrays
- 1631.Path With Minimum Effort
- 1632.Rank Transform of a Matrix
- 1634.Add Two Polynomials Represented as Linked Lists
- 1639.Number of Ways to Form a Target String Given a Dictionary
- 1642.Furthest Building You Can Reach
- 1643.Kth Smallest Instructions
- 1644.Lowest Common Ancestor of a Binary Tree II
- 1646.Get Maximum in Generated Array
- 1648.Sell Diminishing-Valued Colored Balls
- 1653.Minimum Deletions to Make String Balanced
- 1655.Distribute Repeating Integers
- 1656.Design an Ordered Stream
- 1657.Determine if Two Strings Are Close
- 1659.Maximize Grid Happiness
- 1663.Smallest String With A Given Numeric Value
- 1664.Ways to Make a Fair Array
- 1665.Minimum Initial Energy to Finish Tasks
- 1666.Change the Root of a Binary Tree
- 1668.Maximum Repeating Substring
- 1669.Merge In Between Linked Lists
- 1670.Design Front Middle Back Queue
- 1671.Minimum Number of Removals to Make Mountain Array
- 1673.Find the Most Competitive Subsequence
- 1674.Minimum Moves to Make Array Complementary
- 1675.Minimize Deviation in Array
- 1676.Lowest Common Ancestor of a Binary Tree IV
- 1680.Concatenation of Consecutive Binary Numbers
- 1681.Minimum Incompatibility
- 1682.Longest Palindromic Subsequence II
- 1686.Stone Game VI
- 1687.Delivering Boxes from Storage to Ports
- 1690.Stone Game VII
- 1692.Count Ways to Distribute Candies
- 1694.Reformat Phone Number
- 1695.Maximum Erasure Value
- 1696.Jump Game VI
- 1697.Checking Existence of Edge Length Limited Paths
- 1698.Number of Distinct Substrings in a String
- 1700-1799
- 1701.Average Waiting Time
- 1702.Maximum Binary String After Change
- 1703.Minimum Adjacent Swaps for K Consecutive Ones
- 1707.Maximum XOR With an Element From Array
- 1708.Largest Subarray Length K
- 1710.Maximum Units on a Truck
- 1713.Minimum Operations to Make a Subsequence
- 1714.Sum Of Special Evenly-Spaced Elements In Array
- 1722.Minimize Hamming Distance After Swap Operations
- 1724.Checking Existence of Edge Length Limited Paths II
- 1726.Tuple with Same Product
- 1727.Largest Submatrix With Rearrangements
- 1728.Cat and Mouse II
- 1733.Minimum Number of People to Teach
- 1735.Count Ways to Make Array With Product
- 1737.Change Minimum Characters to Satisfy One of Three Conditions
- 1739.Building Boxes
- 1742.Maximum Number of Balls in a Box
- 1744.Can You Eat Your Favorite Candy on Your Favorite Day
- 1745.Palindrome Partitioning IV
- 1746.Maximum Subarray Sum After One Operation
- 1749.Maximum Absolute Sum of Any Subarray
- 1750.Minimum Length of String After Deleting Similar Ends
- 1751.Maximum Number of Events That Can Be Attended II
- 1752.Check if Array Is Sorted and Rotated
- 1753.Maximum Score From Removing Stones
- 1754.Largest Merge Of Two Strings
- 1755.Closest Subsequence Sum
- 1756.Design Most Recently Used Queue
- 1759.Count Number of Homogenous Substrings
- 1761.Minimum Degree of a Connected Trio in a Graph
- 1763.Longest Nice Substring
- 1764.Form Array by Concatenating Subarrays of Another Array
- 1766.Tree of Coprimes
- 1770.Maximum Score from Performing Multiplication Operations
- 1771.Maximize Palindrome Length From Subsequences
- 1773.Count Items Matching a Rule
- 1774.Closest Dessert Cost
- 1776.Car Fleet II
- 1778.Shortest Path in a Hidden Grid
- 1779.Find Nearest Point That Has the Same X or Y Coordinate
- 1780.Check if Number is a Sum of Powers of Three
- 1782.Count Pairs Of Nodes
- 1784.Check if Binary String Has at Most One Segment of Ones
- 1785.Minimum Elements to Add to Form a Given Sum
- 1787.Make the XOR of All Segments Equal to Zero
- 1788.Maximize the Beauty of the Garden
- 1792.Maximum Average Pass Ratio
- 1793.Maximum Score of a Good Subarray
- 1794.Count Pairs of Equal Substrings With Minimum Difference
- 1797.Design Authentication Manager
- 1799.Maximize Score After N Operations
- 1800-1899
- 1801.Number of Orders in the Backlog
- 1802.Maximum Value at a Given Index in a Bounded Array
- 1803.Count Pairs With XOR in a Range
- 1804.Implement Trie II (Prefix Tree)
- 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
- 1808.Maximize Number of Nice Divisors
- 1810.Minimum Path Cost in a Hidden Grid
- 1814.Count Nice Pairs in an Array
- 1815.Maximum Number of Groups Getting Fresh Donuts
- 1819.Number of Different Subsequences GCDs
- 1820.Maximum Number of Accepted Invitations
- 1824.Minimum Sideway Jumps
- 1825.Finding MK Average
- 1828.Queries on Number of Points Inside a Circle
- 1830.Minimum Number of Operations to Make String Sorted
- 1834.Single-Threaded CPU
- 1835.Find XOR Sum of All Pairs Bitwise AND
- 1839.Longest Substring Of All Vowels in Order
- 1840.Maximum Building Height
- 1842.Next Palindrome Using Same Digits
- 1845.Seat Reservation Manager
- 1847.Closest Room
- 1849.Splitting a String Into Descending Consecutive Values
- 1850.Minimum Adjacent Swaps to Reach the Kth Smallest Number
- 1851.Minimum Interval to Include Each Query
- 1852.Distinct Numbers in Each Subarray
- 1862.Sum of Floored Pairs
- 1865.Finding Pairs With a Certain Sum
- 1866.Number of Ways to Rearrange Sticks With K Sticks Visible
- 1868.Product of Two Run-Length Encoded Arrays
- 1870.Minimum Speed to Arrive on Time
- 1876.Substrings of Size Three with Distinct Characters
- 1878.Get Biggest Three Rhombus Sums in a Grid
- 1879.Minimum XOR Sum of Two Arrays
- 1881.Maximum Value after Insertion
- 1883.Minimum Skips to Arrive at Meeting On Time
- 1884.Egg Drop With 2 Eggs and N Floors
- 1886.Determine Whether Matrix Can Be Obtained By Rotation
- 1889.Minimum Space Wasted From Packaging
- 1896.Minimum Cost to Change the Final Value of Expression
- 1900-1999
- 1900.The Earliest and Latest Rounds Where Players Compete
- 1901.Find a Peak Element II
- 1903.Largest Odd Number in String
- 1908.Game of Nim
- 1910.Remove All Occurrences of a Substring
- 1911.Maximum Alternating Subsequence Sum
- 1912.Design Movie Rental System
- 1914.Cyclically Rotating a Grid
- 1915.Number of Wonderful Substrings
- 1916.Count Ways to Build Rooms in an Ant Colony
- 1918.Kth Smallest Subarray Sum
- 1922.Count Good Numbers
- 1923.Longest Common Subpath
- 1924.Erect the Fence II
- 1925.Count Square Sum Triples
- 1927.Sum Game
- 1928.Minimum Cost to Reach Destination in Time
- 1931.Painting a Grid With Three Different Colors
- 1932.Merge BSTs to Create Single BST
- 1933.Check if String Is Decomposable Into Value-Equal Substrings
- 1937.Maximum Number of Points with Cost
- 1938.Maximum Genetic Difference Query
- 1944.Number of Visible People in a Queue
- 1947.Maximum Compatibility Score Sum
- 1948.Delete Duplicate Folders in System
- 1950.Maximum of Minimum Values in All Subarrays
- 1954.Minimum Garden Perimeter to Collect Enough Apples
- 1955.Count Number of Special Subsequences
- 1956.Minimum Time For K Virus Variants to Spread
- 1958.Check if Move is Legal
- 1960.Maximum Product of the Length of Two Palindromic Substrings
- 1961.Check If String Is a Prefix of Array
- 1966.Binary Searchable Numbers in an Unsorted Array
- 1969.Minimum Non-Zero Product of the Array Elements
- 1970.Last Day Where You Can Still Cross
- 1973.Count Nodes Equal to Sum of Descendants
- 1975.Maximum Matrix Sum
- 1977.Number of Ways to Separate Numbers
- 1981.Minimize the Difference Between Target and Chosen Elements
- 1982.Find Array Given Subset Sums
- 1983.Widest Pair of Indices With Equal Range Sum
- 1986.Minimum Number of Work Sessions to Finish the Tasks
- 1987.Number of Unique Good Subsequences
- 1989.Maximum Number of People That Can Be Caught in Tag
- 1992.Find All Groups of Farmland
- 1993.Operations on Tree
- 1994.The Number of Good Subsets
- 1997.First Day Where You Have Been in All the Rooms
- 1998.GCD Sort of an Array
- 1999.Smallest Greater Multiple Made of Two Digits
- 2000-2099
- 2000.Reverse Prefix of Word
- 2001.Number of Pairs of Interchangeable Rectangles
- 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
- 2007.Find Original Array From Doubled Array
- 2008.Maximum Earnings From Taxi
- 2013.Detect Squares
- 2014.Longest Subsequence Repeated k Times
- 2015.Average Height of Buildings in Each Segment
- 2018.Check if Word Can Be Placed In Crossword
- 2019.The Score of Students Solving Math Expression
- 2022.Convert 1D Array Into 2D Array
- 2023.Number of Pairs of Strings With Concatenation Equal to Target
- 2025.Maximum Number of Ways to Partition an Array
- 2027.Minimum Moves to Convert String
- 2030.Smallest K-Length Subsequence With Occurrences of a Letter
- 2032.Two Out of Three
- 2034.Stock Price Fluctuation
- 2036.Maximum Alternating Subarray Sum
- 2040.Kth Smallest Product of Two Sorted Arrays
- 2043.Simple Bank System
- 2045.Second Minimum Time to Reach Destination
- 2047.Number of Valid Words in a Sentence
- 2048.Next Greater Numerically Balanced Number
- 2056.Number of Valid Move Combinations On Chessboard
- 2058.Find the Minimum and Maximum Number of Nodes Between Critical Points
- 2059.Minimum Operations to Convert Number
- 2060.Check if an Original String Exists Given Two Encoded Strings
- 2061.Number of Spaces Cleaning Robot Cleaned
- 2062.Count Vowel Substrings of a String
- 2065.Maximum Path Quality of a Graph
- 2069.Walking Robot Simulation II
- 2071.Maximum Number of Tasks You Can Assign
- 2076.Process Restricted Friend Requests
- 2077.Paths in Maze That Lead to Same Room
- 2080.Range Frequency Queries
- 2081.Sum of k-Mirror Numbers
- 2086.Minimum Number of Buckets Required to Collect Rainwater from Houses
- 2087.Minimum Cost Homecoming of a Robot in a Grid
- 2088.Count Fertile Pyramids in a Land
- 2090.K Radius Subarray Averages
- 2092.Find All People With Secret
- 2093.Minimum Cost to Reach City With Discounts
- 2096.Step-By-Step Directions From a Binary Tree Node to Another
- 2097.Valid Arrangement of Pairs
- 2098.Subsequence of Size K With the Largest Even Sum
- 2100-2199
- 2102.Sequentially Ordinal Rank Tracker
- 2104.Sum of Subarray Ranges
- 2106.Maximum Fruits Harvested After at Most K Steps
- 2107.Number of Unique Flavors After Sharing K Candies
- 2113.Elements in Array After Removing and Replacing Elements
- 2115.Find All Possible Recipes from Given Supplies
- 2116.Check if a Parentheses String Can Be Valid
- 2117.Abbreviating the Product of a Range
- 2120.Execution of All Suffix Instructions Staying in a Grid
- 2123.Minimum Operations to Remove Adjacent Ones in Matrix
- 2124.Check if All A's Appears Before All B's
- 2128.Remove All Ones With Row and Column Flips
- 2129.Capitalize the Title
- 2131.Longest Palindrome by Concatenating Two Letter Words
- 2132.Stamping the Grid
- 2135.Count Words Obtained After Adding a Letter
- 2137.Pour Water Between Buckets to Make Water Levels Equal
- 2138.Divide a String Into Groups of Size k
- 2141.Maximum Running Time of N Computers
- 2143.Choose Numbers From Two Arrays in Range
- 2146.K Highest Ranked Items Within a Price Range
- 2147.Number of Ways to Divide a Long Corridor
- 2152.Minimum Number of Lines to Cover Points
- 2156.Find Substring With Given Hash Value
- 2162.Minimum Cost to Set Cooking Time
- 2163.Minimum Difference in Sums After Removal of Elements
- 2166.Design Bitset
- 2168.Unique Substrings With Equal Digit Frequency
- 2172.Maximum AND Sum of Array
- 2174.Remove All Ones With Row and Column Flips II
- 2176.Count Equal and Divisible Pairs in an Array
- 2183.Count Array Pairs Divisible by K
- 2184.Number of Ways to Build Sturdy Brick Wall
- 2187.Minimum Time to Complete Trips
- 2188.Minimum Time to Finish the Race
- 2189.Number of Ways to Build House of Cards
- 2194.Cells in a Range on an Excel Sheet
- 2195.Append K Integers With Minimal Sum
- 2197.Replace Non-Coprime Numbers in Array
- 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
- 2210.Count Hills and Valleys in an Array
- 2213.Longest Substring of One Repeating Character
- 2217.Find Palindrome With Fixed Length
- 2223.Sum of Scores of Built Strings
- 2227.Encrypt and Decrypt Strings
- 2234.Maximum Total Beauty of the Gardens
- 2237.Count Positions on Street With Required Brightness
- 2241.Design an ATM Machine
- 2245.Maximum Trailing Zeros in a Cornered Path
- 2246.Longest Path With Different Adjacent Characters
- 2247.Maximum Cost of Trip With K Highways
- 2250.Count Number of Rectangles Containing Each Point
- 2251.Number of Flowers in Full Bloom
- 2254.Design Video Sharing Platform
- 2255.Count Prefixes of a Given String
- 2257.Count Unguarded Cells in the Grid
- 2258.Escape the Spreading Fire
- 2259.Remove Digit From Number to Maximize Result
- 2263.Make Array Non-decreasing or Non-increasing
- 2269.Find the K-Beauty of a Number
- 2271.Maximum White Tiles Covered by a Carpet
- 2272.Substring With Largest Variance
- 2273.Find Resultant Array After Removing Anagrams
- 2276.Count Integers in Intervals
- 2277.Closest Node to Path in Tree
- 2279.Maximum Bags With Full Capacity of Rocks
- 2282.Number of People That Can Be Seen in a Grid
- 2286.Booking Concert Tickets in Groups
- 2293.Min Max Game
- 2297.Jump Game VIII
- 2300-2399
- 2300.Successful Pairs of Spells and Potions
- 2307.Check for Contradictions in Equations
- 2313.Minimum Flips in Binary Tree to Get Result
- 2332.The Latest Time to Catch a Bus
- 2333.Minimum Sum of Squared Difference
- 2336.Smallest Number in Infinite Set
- 2340.Minimum Adjacent Swaps to Make a Valid Array
- 2343.Query Kth Smallest Trimmed Number
- 2345.Finding the Number of Visible Mountains
- 2349.Design a Number Container System
- 2353.Design a Food Rating System
- 2359.Find Closest Node to Given Two Nodes
- 2361.Minimum Costs Using the Train Line
- 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
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
2,416 files changed
+7787
-1276
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 |
| - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
202 | 205 |
| |
203 | 206 |
| |
204 | 207 |
| |
| 208 | + | |
205 | 209 |
| |
206 | 210 |
| |
207 |
| - | |
208 | 211 |
| |
209 | 212 |
| |
210 | 213 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
204 |
| - | |
| 204 | + | |
205 | 205 |
| |
206 |
| - | |
| 206 | + | |
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
| 211 | + | |
211 | 212 |
| |
212 | 213 |
| |
213 | 214 |
| |
214 |
| - | |
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 |
| - | |
77 | 76 |
| |
78 | 77 |
| |
79 | 78 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
100 | 99 |
| |
101 | 100 |
| |
102 | 101 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
82 | 81 |
| |
83 | 82 |
| |
84 | 83 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 |
| - | |
101 | 100 |
| |
102 | 101 |
| |
103 | 102 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 | 47 |
| |
49 | 48 |
| |
50 | 49 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 | 24 |
| |
26 | 25 |
| |
27 | 26 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 | 37 |
| |
39 | 38 |
| |
40 | 39 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| 51 | + | |
50 | 52 |
| |
51 | 53 |
| |
52 | 54 |
| |
| |||
113 | 115 |
| |
114 | 116 |
| |
115 | 117 |
| |
| 118 | + | |
116 | 119 |
| |
117 | 120 |
| |
118 | 121 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
| 18 | + | |
17 | 19 |
| |
18 | 20 |
| |
| 21 | + | |
19 | 22 |
| |
20 | 23 |
| |
| 24 | + | |
21 | 25 |
| |
22 | 26 |
| |
| 27 | + | |
23 | 28 |
| |
24 | 29 |
| |
| 30 | + | |
25 | 31 |
| |
26 | 32 |
| |
| 33 | + | |
27 | 34 |
| |
28 | 35 |
| |
29 | 36 |
| |
30 | 37 |
| |
31 | 38 |
| |
32 | 39 |
| |
| 40 | + | |
33 | 41 |
| |
34 | 42 |
| |
| 43 | + | |
35 | 44 |
| |
36 | 45 |
| |
| 46 | + | |
37 | 47 |
| |
38 | 48 |
| |
| 49 | + | |
39 | 50 |
| |
40 | 51 |
| |
| 52 | + | |
41 | 53 |
| |
42 | 54 |
| |
| 55 | + | |
43 | 56 |
| |
44 | 57 |
| |
45 | 58 |
| |
| |||
50 | 63 |
| |
51 | 64 |
| |
52 | 65 |
| |
| 66 | + | |
53 | 67 |
| |
54 | 68 |
| |
55 | 69 |
| |
56 | 70 |
| |
57 | 71 |
| |
58 | 72 |
| |
| 73 | + | |
59 | 74 |
| |
60 | 75 |
| |
61 | 76 |
| |
| |||
122 | 137 |
| |
123 | 138 |
| |
124 | 139 |
| |
| 140 | + | |
125 | 141 |
| |
126 | 142 |
| |
127 | 143 |
|
0 commit comments