Skip to content

LeetCode with TypeScript

License

Notifications You must be signed in to change notification settings

brahinets/leetcode-js

Repository files navigation

LeetCode with JavaScript: give your brain a workout

image

All Solutions
  1. 1. Two Sum
  2. 2. Add Two Numbers
  3. 3. Longest Substring Without Repeating Characters
  4. 4. Median of Two Sorted Arrays
  5. 5. Longest Palindromic Substring
  6. 6. Zigzag Conversion
  7. 7. Reverse Integer
  8. 8. String to Integer (atoi)
  9. 9. Palindrome Number
  10. 11. Container With Most Water
  11. 12. Integer to Roman
  12. 13. Roman to Integer
  13. 14. Longest Common Prefix
  14. 15. 3Sum
  15. 16. 3Sum Closest
  16. 17. Letter Combinations of a Phone Number
  17. 19. Remove Nth Node From End of List
  18. 20. Valid Parentheses
  19. 21. Merge Two Sorted Lists
  20. 22. Generate Parentheses
  21. 23. Merge k Sorted Lists
  22. 24. Swap Nodes in Pairs
  23. 26. Remove Duplicates from Sorted Array
  24. 27. Remove Element
  25. 28. Find the Index of the First Occurrence in a String
  26. 33. Search in Rotated Sorted Array
  27. 34. Find First and Last Position of Element in Sorted Array
  28. 35. Search Insert Position
  29. 36. Valid Sudoku
  30. 40. Combination Sum II
  31. 41. First Missing Positive
  32. 42. Trapping Rain Water
  33. 49. Group Anagrams
  34. 50. Pow
  35. 54. Spiral Matrix
  36. 57. Insert Interval
  37. 58. Length of Last Word
  38. 59. Spiral Matrix II
  39. 62. Unique Paths
  40. 67. Add Binary
  41. 70. Climbing Stairs
  42. 71. Simplify Path
  43. 74. Search a 2D Matrix
  44. 75. Sort Colors
  45. 76. Minimum Window Substring
  46. 77. Combinations
  47. 78. Subsets
  48. 79. Word Search
  49. 85. Maximal Rectangle
  50. 86. Partition List
  51. 91. Decode Ways
  52. 94. Binary Tree Inorder Traversal
  53. 98. Validate Binary Search Tree
  54. 100. Same Tree
  55. 101. Symmetric Tree
  56. 102. Binary Tree Level Order Traversal
  57. 103. Binary Tree Zigzag Level Order Traversal
  58. 104. Maximum Depth of Binary Tree
  59. 109. Convert Sorted List to Binary Search Tree
  60. 110. Balanced Binary Tree
  61. 111. Minimum Depth of Binary Tree
  62. 119. Pascal's Triangle II
  63. 121. Best Time to Buy and Sell Stock
  64. 125. Valid Palindrome
  65. 128. Longest Consecutive Sequence
  66. 129. Sum Root to Leaf Numbers
  67. 131. Palindrome Partitioning
  68. 137. Single Number II
  69. 139. Word Break
  70. 140. Word Break II
  71. 141. Linked List Cycle
  72. 142. Linked List Cycle II
  73. 143. Reorder List
  74. 145. Binary Tree Postorder Traversal
  75. 146. LRU Cache
  76. 150. Evaluate Reverse Polish Notation
  77. 153. Find Minimum in Rotated Sorted Array
  78. 155. Min Stack
  79. 165. Compare Version Numbers
  80. 167. Two Sum II - Input Array Is Sorted
  81. 168. Excel Sheet Column Title
  82. 169. Majority Element
  83. 179. Largest Number
  84. 190. Reverse Bits
  85. 191. Number of 1 Bits
  86. 198. House Robber
  87. 199. Binary Tree Right Side View
  88. 200. Number of Islands
  89. 201. Bitwise AND of Numbers Range
  90. 205. Isomorphic Strings
  91. 206. Reverse Linked List
  92. 208. Implement Trie (Prefix Tree)
  93. 211. Design Add and Search Words Data Structure
  94. 214. Shortest Palindrome
  95. 215. Kth Largest Element in an Array
  96. 217. Contains Duplicate
  97. 225. Implement Stack using Queues
  98. 226. Invert Binary Tree
  99. 228. Summary Ranges
  100. 229. Majority Element II
  101. 231. Power of Two
  102. 232. Implement Queue using Stacks
  103. 234. Palindrome Linked List
  104. 235. Lowest Common Ancestor of a Binary Search Tree
  105. 237. Delete Node in a Linked List
  106. 238. Product of Array Except Self
  107. 239. Sliding Window Maximum
  108. 241. Different Ways to Add Parentheses
  109. 242. Valid Anagram
  110. 258. Add Digits
  111. 260. Single Number III
  112. 264. Ugly Number II
  113. 268. Missing Number
  114. 273. Integer to English Words
  115. 278. First Bad Version
  116. 279. Perfect Squares
  117. 287. Find the Duplicate Number
  118. 299. Bulls and Cows
  119. 300. Longest Increasing Subsequence
  120. 310. Minimum Height Trees
  121. 316. Remove Duplicate Letters
  122. 319. Bulb Switcher
  123. 330. Patching Array
  124. 341. Flatten Nested List Iterator
  125. 342. Power of Four
  126. 343. Integer Break
  127. 344. Reverse String
  128. 347. Top K Frequent Elements
  129. 349. Intersection of Two Arrays
  130. 350. Intersection of Two Arrays II
  131. 368. Largest Divisible Subset
  132. 373. Find K Pairs with Smallest Sums
  133. 380. Insert Delete GetRandom O(1)
  134. 382. Linked List Random Node
  135. 383. Ransom Note
  136. 386. Lexicographical Numbers
  137. 387. First Unique Character in a String
  138. 392. Is Subsequence
  139. 394. Decode String
  140. 399. Evaluate Division
  141. 402. Remove K Digits
  142. 403. Frog Jump
  143. 404. Sum of Left Leaves
  144. 407. Trapping Rain Water II
  145. 409. Longest Palindrome
  146. 416. Partition Equal Subset Sum
  147. 424. Longest Repeating Character Replacement
  148. 432. All O`one Data Structure
  149. 435. Non-overlapping Intervals
  150. 438. Find All Anagrams in a String
  151. 440. K-th Smallest in Lexicographical Order
  152. 442. Find All Duplicates in an Array
  153. 443. String Compression
  154. 445. Add Two Numbers II
  155. 446. Arithmetic Slices II - Subsequence
  156. 451. Sort Characters By Frequency
  157. 452. Minimum Number of Arrows to Burst Balloons
  158. 455. Assign Cookies
  159. 458. Poor Pigs
  160. 459. Repeated Substring Pattern
  161. 463. Island Perimeter
  162. 476. Number Complement
  163. 486. Predict the Winner
  164. 494. Target Sum
  165. 501. Find Mode in Binary Search Tree
  166. 502. IPO
  167. 506. Relative Ranks
  168. 509. Fibonacci Number
  169. 513. Find Bottom Left Tree Value
  170. 514. Freedom Trail
  171. 515. Find Largest Value in Each Tree Row
  172. 516. Longest Palindromic Subsequence
  173. 518. Coin Change II
  174. 521. Longest Uncommon Subsequence I
  175. 523. Continuous Subarray Sum
  176. 525. Contiguous Array
  177. 530. Minimum Absolute Difference in BST
  178. 538. Convert BST to Greater Tree
  179. 539. Minimum Time Difference
  180. 540. Single Element in a Sorted Array
  181. 543. Diameter of Binary Tree
  182. 547. Number of Provinces
  183. 552. Student Attendance Record II
  184. 560. Subarray Sum Equals K
  185. 564. Find the Closest Palindrome
  186. 567. Permutation in String
  187. 572. Subtree of Another Tree
  188. 576. Out of Boundary Paths
  189. 589. N-ary Tree Preorder Traversal
  190. 590. N-ary Tree Postorder Traversal
  191. 592. Fraction Addition and Subtraction
  192. 605. Can Place Flowers
  193. 606. Construct String from Binary Tree
  194. 621. Task Scheduler
  195. 623. Add One Row to Tree
  196. 624. Maximum Distance in Arrays
  197. 629. K Inverse Pairs Array
  198. 632. Smallest Range Covering Elements from K Lists
  199. 633. Sum of Square Numbers
  200. 641. Design Circular Deque
  201. 645. Set Mismatch
  202. 647. Palindromic Substrings
  203. 648. Replace Words
  204. 649. Dota2 Senate
  205. 650. 2 Keys Keyboard
  206. 661. Image Smoother
  207. 664. Strange Printer
  208. 670. Maximum Swap
  209. 678. Valid Parenthesis String
  210. 684. Redundant Connection
  211. 688. Knight Probability in Chessboard
  212. 689. Maximum Sum of 3 Non-Overlapping Subarrays
  213. 692. Top K Frequent Words
  214. 703. Kth Largest Element in a Stream
  215. 704. Binary Search
  216. 705. Design HashSet
  217. 706. Design HashMap
  218. 712. Minimum ASCII Delete Sum for Two Strings
  219. 713. Subarray Product Less Than K
  220. 714. Best Time to Buy and Sell Stock with Transaction Fee
  221. 719. Find K-th Smallest Pair Distance
  222. 724. Find Pivot Index
  223. 725. Split Linked List in Parts
  224. 726. Number of Atoms
  225. 729. My Calendar I
  226. 731. My Calendar II
  227. 733. Flood Fill
  228. 735. Asteroid Collision
  229. 739. Daily Temperatures
  230. 744. Find Smallest Letter Greater Than Target
  231. 746. Min Cost Climbing Stairs
  232. 752. Open the Lock
  233. 763. Partition Labels
  234. 767. Reorganize String
  235. 769. Max Chunks To Make Sorted
  236. 773. Sliding Puzzle
  237. 779. K-th Symbol in Grammar
  238. 783. Minimum Distance Between BST Nodes
  239. 786. K-th Smallest Prime Fraction
  240. 787. Cheapest Flights Within K Stops
  241. 791. Custom Sort String
  242. 796. Rotate String
  243. 802. Find Eventual Safe States
  244. 808. Soup Servings
  245. 815. Bus Routes
  246. 823. Binary Trees With Factors
  247. 826. Most Profit Assigning Work
  248. 827. Making A Large Island
  249. 834. Sum of Distances in Tree
  250. 840. Magic Squares In Grid
  251. 844. Backspace String Compare
  252. 846. Hand of Straights
  253. 852. Peak Index in a Mountain Array
  254. 853. Car Fleet
  255. 857. Minimum Cost to Hire K Workers
  256. 859. Buddy Strings
  257. 860. Lemonade Change
  258. 861. Score After Flipping Matrix
  259. 862. Shortest Subarray with Sum at Least K
  260. 863. All Nodes Distance K in Binary Tree
  261. 865. Smallest Subtree with all the Deepest Nodes
  262. 867. Transpose Matrix
  263. 872. Leaf-Similar Trees
  264. 873. Length of Longest Fibonacci Subsequence
  265. 874. Walking Robot Simulation
  266. 875. Koko Eating Bananas
  267. 876. Middle of the Linked List
  268. 880. Decoded String at Index
  269. 881. Boats to Save People
  270. 884. Uncommon Words from Two Sentences
  271. 885. Spiral Matrix III
  272. 889. Construct Binary Tree from Preorder and Postorder Traversal
  273. 907. Sum of Subarray Minimums
  274. 912. Sort an Array
  275. 916. Word Subsets
  276. 920. Number of Music Playlists
  277. 921. Minimum Add to Make Parentheses Valid
  278. 930. Binary Subarrays With Sum
  279. 931. Minimum Falling Path Sum
  280. 934. Shortest Bridge
  281. 935. Knight Dialer
  282. 938. Range Sum of BST
  283. 945. Minimum Increment to Make Array Unique
  284. 946. Validate Stack Sequences
  285. 947. Most Stones Removed with Same Row or Column
  286. 948. Bag of Tokens
  287. 950. Reveal Cards In Increasing Order
  288. 951. Flip Equivalent Binary Trees
  289. 956. Tallest Billboard
  290. 958. Check Completeness of a Binary Tree
  291. 959. Regions Cut By Slashes
  292. 962. Maximum Width Ramp
  293. 974. Subarray Sums Divisible by K
  294. 977. Squares of a Sorted Array
  295. 979. Distribute Coins in Binary Tree
  296. 981. Time Based Key-Value Store
  297. 983. Minimum Cost For Tickets
  298. 988. Smallest String Starting From Leaf
  299. 989. Add to Array-Form of Integer
  300. 992. Subarrays with K Different Integers
  301. 995. Minimum Number of K Consecutive Bit Flips
  302. 997. Find the Town Judge
  303. 1002. Find Common Characters
  304. 1009. Complement of Base 10 Integer
  305. 1014. Best Sightseeing Pair
  306. 1020. Number of Enclaves
  307. 1026. Maximum Difference Between Node and Ancestor
  308. 1027. Longest Arithmetic Subsequence
  309. 1028. Recover a Tree From Preorder Traversal
  310. 1035. Uncrossed Lines
  311. 1038. Binary Search Tree to Greater Sum Tree
  312. 1043. Partition Array for Maximum Sum
  313. 1046. Last Stone Weight
  314. 1052. Grumpy Bookstore Owner
  315. 1051. Height Checker
  316. 1072. Flip Columns For Maximum Number of Equal Rows
  317. 1074. Number of Submatrices That Sum to Target
  318. 1079. Letter Tile Possibilities
  319. 1091. Shortest Path in Binary Matrix
  320. 1092. Shortest Common Supersequence
  321. 1095. Find in Mountain Array
  322. 1105. Filling Bookcase Shelves
  323. 1106. Parsing A Boolean Expression
  324. 1110. Delete Nodes And Return Forest
  325. 1122. Relative Sort Array
  326. 1123. Lowest Common Ancestor of Deepest Leaves
  327. 1125. Smallest Sufficient Team
  328. 1137. N-th Tribonacci Number
  329. 1140. Stone Game II
  330. 1143. Longest Common Subsequence
  331. 1146. Snapshot Array
  332. 1155. Number of Dice Rolls With Target Sum
  333. 1160. Find Words That Can Be Formed by Characters
  334. 1161. Maximum Level Sum of a Binary Tree
  335. 1171. Remove Zero Sum Consecutive Nodes from Linked List
  336. 1190. Reverse Substrings Between Each Pair of Parentheses
  337. 1207. Unique Number of Occurrences
  338. 1208. Get Equal Substrings Within Budget
  339. 1218. Longest Arithmetic Subsequence of Given Difference
  340. 1219. Path with Maximum Gold
  341. 1220. Count Vowels Permutation
  342. 1232. Check If It Is a Straight Line
  343. 1233. Remove Sub-Folders from the Filesystem
  344. 1235. Maximum Profit in Job Scheduling
  345. 1239. Maximum Length of a Concatenated String with Unique Characters
  346. 1248. Count Number of Nice Subarrays
  347. 1249. Minimum Remove to Make Valid Parentheses
  348. 1254. Number of Closed Islands
  349. 1255. Maximum Score Words Formed by Letters
  350. 1261. Find Elements in a Contaminated Binary Tree
  351. 1266. Minimum Time Visiting All Points
  352. 1267. Count Servers that Communicate
  353. 1269. Number of Ways to Stay in the Same Place After Some Steps
  354. 1277. Count Square Submatrices with All Ones
  355. 1287. Element Appearing More Than 25% In Sorted Array
  356. 1289. Minimum Falling Path Sum II
  357. 1291. Sequential Digits
  358. 1310. XOR Queries of a Subarray
  359. 1312. Minimum Insertion Steps to Make a String Palindrome
  360. 1318. Minimum Flips to Make a OR b Equal to c
  361. 1325. Delete Leaves With a Given Value
  362. 1331. Rank Transform of an Array
  363. 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
  364. 1335. Minimum Difficulty of a Job Schedule
  365. 1346. Check If N and Its Double Exist
  366. 1347. Minimum Number of Steps to Make Two Strings Anagram
  367. 1351. Count Negative Numbers in a Sorted Matrix
  368. 1352. Product of the Last K Numbers
  369. 1356. Sort Integers by The Number of 1 Bits
  370. 1358. Number of Substrings Containing All Three Characters
  371. 1361. Validate Binary Tree Nodes
  372. 1367. Linked List in Binary Tree
  373. 1368. Minimum Cost to Make at Least One Valid Path in a Grid
  374. 1371. Find the Longest Substring Containing Vowels in Even Counts
  375. 1372. Longest ZigZag Path in a Binary Tree
  376. 1380. Lucky Numbers in a Matrix
  377. 1381. Design a Stack With Increment Operation
  378. 1382. Balance a Binary Search Tree
  379. 1395. Count Number of Teams
  380. 1396. Design Underground System
  381. 1400. Construct K Palindrome Strings
  382. 1404. Number of Steps to Reduce a Number in Binary Representation to One
  383. 1405. Longest Happy String
  384. 1415. The k-th Lexicographical String of All Happy Strings of Length n
  385. 1420. Build Array Where You Can Find The Maximum Exactly K Comparisons
  386. 1424. Diagonal Traverse II
  387. 1425. Constrained Subsequence Sum
  388. 1431. Kids With the Greatest Number of Candies
  389. 1436. Destination City
  390. 1422. Maximum Score After Splitting a String
  391. 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
  392. 1441. Build an Array With Stack Operations
  393. 1442. Count Triplets That Can Form Two Arrays of Equal XOR
  394. 1448. Count Good Nodes in Binary Tree
  395. 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
  396. 1456. Maximum Number of Vowels in a Substring of Given Length
  397. 1457. Pseudo-Palindromic Paths in a Binary Tree
  398. 1458. Max Dot Product of Two Subsequences
  399. 1460. Make Two Arrays Equal by Reversing Subarrays
  400. 1462. Course Schedule IV
  401. 1463. Cherry Pickup II
  402. 1464. Maximum Product of Two Elements in an Array
  403. 1472. Design Browser History
  404. 1475. Final Prices With a Special Discount in a Shop
  405. 1480. Running Sum of 1d Array
  406. 1481. Least Number of Unique Integers after K Removals
  407. 1482. Minimum Number of Days to Make m Bouquets
  408. 1491. Average Salary Excluding the Minimum and Maximum Salary
  409. 1493. Longest Subarray of 1's After Deleting One Element
  410. 1496. Path Crossing
  411. 1497. Check If Array Pairs Are Divisible by k
  412. 1498. Number of Subsequences That Satisfy the Given Sum Condition
  413. 1502. Can Make Arithmetic Progression From Sequence
  414. 1503. Last Moment Before All Ants Fall Out of a Plank
  415. 1508. Range Sum of Sorted Subarray Sums
  416. 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
  417. 1512. Number of Good Pairs
  418. 1514. Path with Maximum Probability
  419. 1518. Water Bottles
  420. 1523. Count Odd Numbers in an Interval Range
  421. 1524. Number of Sub-arrays With Odd Sum
  422. 1530. Number of Good Leaf Nodes Pairs
  423. 1531. String Compression II
  424. 1535. Find the Winner of an Array Game
  425. 1539. Kth Missing Positive Number
  426. 1544. Make The String Great
  427. 1545. Find Kth Bit in Nth Binary String
  428. 1550. Three Consecutive Odds
  429. 1552. Magnetic Force Between Two Balls
  430. 1561. Maximum Number of Coins You Can Get
  431. 1568. Minimum Number of Days to Disconnect Island
  432. 1572. Matrix Diagonal Sum
  433. 1574. Shortest Subarray to be Removed to Make Array Sorted
  434. 1575. Count All Possible Routes
  435. 1578. Minimum Time to Make Rope Colorful
  436. 1579. Remove Max Number of Edges to Keep Graph Fully Traversable
  437. 1582. Special Positions in a Binary Matrix
  438. 1590. Make Sum Divisible by P
  439. 1593. Split a String Into the Max Number of Unique Substrings
  440. 1598. Crawler Log Folder
  441. 1603. Design Parking System
  442. 1605. Find Valid Matrix Given Row and Column Sums
  443. 1608. Special Array With X Elements Greater Than or Equal X
  444. 1639. Number of Ways to Form a Target String Given a Dictionary
  445. 1609. Even Odd Tree
  446. 1611. Minimum One Bit Operations to Make Integers Zero
  447. 1614. Maximum Nesting Depth of the Parentheses
  448. 1624. Largest Substring Between Two Equal Characters
  449. 1630. Arithmetic Subarrays
  450. 1636. Sort Array by Increasing Frequency
  451. 1637. Widest Vertical Area Between Two Points Containing No Points
  452. 1642. Furthest Building You Can Reach
  453. 1652. Defuse the Bomb
  454. 1653. Minimum Deletions to Make String Balanced
  455. 1657. Determine if Two Strings Are Close
  456. 1662. Check If Two String Arrays are Equivalent
  457. 1669. Merge In Between Linked Lists
  458. 1671. Minimum Number of Removals to Make Mountain Array
  459. 1684. Count the Number of Consistent Strings
  460. 1685. Sum of Absolute Differences in a Sorted Array
  461. 1688. Count of Matches in Tournament
  462. 1700. Number of Students Unable to Eat Lunch
  463. 1701. Average Waiting Time
  464. 1704. Determine if String Halves Are Alike
  465. 1716. Calculate Money in Leetcode Bank
  466. 1717. Maximum Score From Removing Substrings
  467. 1718. Construct the Lexicographically Largest Valid Sequence
  468. 1721. Swapping Nodes in a Linked List
  469. 1726. Tuple with Same Product
  470. 1727. Largest Submatrix With Rearrangements
  471. 1732. Find the Highest Altitude
  472. 1743. Restore the Array From Adjacent Pairs
  473. 1749. Maximum Absolute Sum of Any Subarray
  474. 1750. Minimum Length of String After Deleting Similar Ends
  475. 1752. Check if Array Is Sorted and Rotated
  476. 1758. Minimum Changes To Make Alternating Binary String
  477. 1759. Count Number of Homogenous Substrings
  478. 1760. Minimum Limit of Balls in a Bag
  479. 1765. Map of Highest Peak
  480. 1768. Merge Strings Alternately
  481. 1769. Minimum Number of Operations to Move All Balls to Each Box
  482. 1780. Check if Number is a Sum of Powers of Three
  483. 1790. Check if One String Swap Can Make Strings Equal
  484. 1791. Find Center of Star Graph
  485. 1792. Maximum Average Pass Ratio
  486. 1793. Maximum Score of a Good Subarray
  487. 1799. Maximize Score After N Operations
  488. 1800. Maximum Ascending Subarray Sum
  489. 1802. Maximum Value at a Given Index in a Bounded Array
  490. 1813. Sentence Similarity III
  491. 1814. Count Nice Pairs in an Array
  492. 1822. Sign of the Product of an Array
  493. 1823. Find the Winner of the Circular Game
  494. 1829. Maximum XOR for Each Query
  495. 1838. Frequency of the Most Frequent Element
  496. 1845. Seat Reservation Manager
  497. 1846. Maximum Element After Decreasing and Rearranging
  498. 1861. Rotating the Box
  499. 1863. Sum of All Subset XOR Totals
  500. 1870. Minimum Speed to Arrive on Time
  501. 1877. Minimize Maximum Pair Sum in Array
  502. 1887. Reduction Operations to Make the Array Elements Equal
  503. 1894. Find the Student that Will Replace the Chalk
  504. 1897. Redistribute Characters to Make All Strings Equal
  505. 1903. Largest Odd Number in String
  506. 1905. Count Sub Islands
  507. 1910. Remove All Occurrences of a Substring
  508. 1913. Maximum Product Difference Between Two Pairs
  509. 1915. Number of Wonderful Substrings
  510. 1921. Eliminate Maximum Number of Monsters
  511. 1930. Unique Length-3 Palindromic Subsequences
  512. 1937. Maximum Number of Points with Cost
  513. 1942. The Number of the Smallest Unoccupied Chair
  514. 1945. Sum of Digits of String After Convert
  515. 1957. Delete Characters to Make Fancy String
  516. 1963. Minimum Number of Swaps to Make the String Balanced
  517. 1971. Find if Path Exists in Graph
  518. 1975. Maximum Matrix Sum
  519. 1976. Number of Ways to Arrive at Destination
  520. 1980. Find Unique Binary String
  521. 1992. Find All Groups of Farmland
  522. 2000. Reverse Prefix of Word
  523. 2009. Minimum Number of Operations to Make Array Continuous
  524. 2017. Grid Game
  525. 2022. Convert 1D Array Into 2D Array
  526. 2024. Maximize the Confusion of an Exam
  527. 2028. Find Missing Observations
  528. 2033. Minimum Operations to Make a Uni-Value Grid
  529. 2037. Minimum Number of Moves to Seat Everyone
  530. 2044. Count Number of Maximum Bitwise-OR Subsets
  531. 2045. Second Minimum Time to Reach Destination
  532. 2050. Parallel Courses III
  533. 2053. Kth Distinct String in an Array
  534. 2054. Two Best Non-Overlapping Events
  535. 2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
  536. 2064. Minimized Maximum of Products Distributed to Any Store
  537. 2070. Most Beautiful Item for Each Query
  538. 2073. Time Needed to Buy Tickets
  539. 2090. K Radius Subarray Averages
  540. 2092. Find All People With Secret
  541. 2096. Step-By-Step Directions From a Binary Tree Node to Another
  542. 2097. Valid Arrangement of Pairs
  543. 2108. Find First Palindromic String in the Array
  544. 2109. Adding Spaces to a String
  545. 2115. Find All Possible Recipes from Given Supplies
  546. 2116. Check if a Parentheses String Can Be Valid
  547. 2125. Number of Laser Beams in a Bank
  548. 2127. Maximum Employees to Be Invited to a Meeting
  549. 2130. Maximum Twin Sum of a Linked List
  550. 2134. Minimum Swaps to Group All 1's Together II
  551. 2140. Solving Questions With Brainpower
  552. 2147. Number of Ways to Divide a Long Corridor
  553. 2149. Rearrange Array Elements by Sign
  554. 2161. Partition Array According to Given Pivot
  555. 2181. Merge Nodes in Between Zeros
  556. 2182. Construct String With Repeat Limit
  557. 2185. Counting Words With a Given Prefix
  558. 2187. Minimum Time to Complete Trips
  559. 2191. Sort the Jumbled Numbers
  560. 2192. All Ancestors of a Node in a Directed Acyclic Graph
  561. 2196. Create Binary Tree From Descriptions
  562. 2206. Divide Array Into Equal Pairs
  563. 2215. Find the Difference of Two Arrays
  564. 2220. Minimum Bit Flips to Convert Number
  565. 2225. Find Players With Zero or One Losses
  566. 2226. Maximum Candies Allocated to K Children
  567. 2235. Add Two Integers
  568. 2236. Root Equals Sum of Children
  569. 2251. Number of Flowers in Full Bloom
  570. 2257. Count Unguarded Cells in the Grid
  571. 2264. Largest 3-Same-Digit Number in String
  572. 2265. Count Nodes Equal to Average of Subtree
  573. 2270. Number of Ways to Split Array
  574. 2275. Largest Combination With Bitwise AND Greater Than Zero
  575. 2285. Maximum Total Importance of Roads
  576. 2290. Minimum Obstacle Removal to Reach Corner
  577. 2300. Successful Pairs of Spells and Potions
  578. 2305. Fair Distribution of Cookies
  579. 2326. Spiral Matrix IV
  580. 2331. Evaluate Boolean Binary Tree
  581. 2336. Smallest Number in Infinite Set
  582. 2337. Move Pieces to Obtain a String
  583. 2342. Max Sum of a Pair With Equal Sum of Digits
  584. 2348. Number of Zero-Filled Sub-arrays
  585. 2349. Design a Number Container System
  586. 2352. Equal Row and Column Pairs
  587. 2353. Design a Food Rating System
  588. 2364. Count Number of Bad Pairs
  589. 2370. Longest Ideal Subsequence
  590. 2471. Minimum Number of Operations to Sort a Binary Tree by Level
  591. 2373. Largest Local Values in a Matrix
  592. 2375. Construct Smallest Number From DI String
  593. 2379. Minimum Recolors to Get K Consecutive Black Blocks
  594. 2381. Shifting Letters II
  595. 2385. Amount of Time for Binary Tree to Be Infected
  596. 2390. Removing Stars From a String
  597. 2391. Minimum Amount of Time to Collect Garbage
  598. 2392. Build a Matrix With Conditions
  599. 2402. Meeting Rooms III
  600. 2401. Longest Nice Subarray
  601. 2405. Optimal Partition of String
  602. 2406. Divide Intervals Into Minimum Number of Groups
  603. 2415. Reverse Odd Levels of Binary Tree
  604. 2416. Sum of Prefix Scores of Strings
  605. 2418. Sort the People
  606. 2419. Longest Subarray With Maximum Bitwise AND
  607. 2425. Bitwise XOR of All Pairings
  608. 2429. Minimize XOR
  609. 2433. Find The Original Array of Prefix Xor
  610. 2439. Minimize Maximum of Array
  611. 2441. Largest Positive Integer That Exists With Its Negative
  612. 2444. Count Subarrays With Fixed Bounds
  613. 2448. Minimum Cost to Make Array Equal
  614. 2458. Height of Binary Tree After Subtree Removal Queries
  615. 2460. Apply Operations to an Array
  616. 2461. Maximum Sum of Distinct Subarrays With Length K
  617. 2462. Total Cost to Hire K Workers
  618. 2463. Minimum Total Distance Traveled
  619. 2466. Count Ways To Build Good Strings
  620. 2467. Most Profitable Path in a Tree
  621. 2482. Difference Between Ones and Zeros in Row and Column
  622. 2485. Find the Pivot Integer
  623. 2486. Append Characters to String to Make Subsequence
  624. 2487. Remove Nodes From Linked List
  625. 2490. Circular Sentence
  626. 2491. Divide Players Into Teams of Equal Skill
  627. 2493. Divide Nodes Into the Maximum Number of Groups
  628. 2501. Longest Square Streak in an Array
  629. 2503. Maximum Number of Points From Grid Queries
  630. 2516. Take K of Each Character From Left and Right
  631. 2530. Maximal Score After Applying K Operations
  632. 2540. Minimum Common Value
  633. 2542. Maximum Subsequence Score
  634. 2551. Put Marbles in Bags
  635. 2523. Closest Prime Numbers in Range
  636. 2529. Maximum Count of Positive Integer and Negative Integer
  637. 2554. Maximum Number of Integers to Choose From a Range I
  638. 2558. Take Gifts From the Richest Pile
  639. 2559. Count Vowel Strings in Ranges
  640. 2560. House Robber IV
  641. 2563. Count the Number of Fair Pairs
  642. 2570. Merge Two 2D Arrays by Summing Values
  643. 2577. Minimum Time to Visit a Cell In a Grid
  644. 2577. Minimum Time to Visit a Cell In a Grid2579. Count Total Number of Colored Cells
  645. 2582. Pass the Pillow
  646. 2583. Kth Largest Sum in a Binary Tree
  647. 2593. Find Score of an Array After Marking All Elements
  648. 2594. Minimum Time to Repair Cars
  649. 2597. The Number of Beautiful Subsets
  650. 2601. Prime Subtraction Operation
  651. 2610. Convert an Array Into a 2D Array With Conditions
  652. 2616. Minimize the Maximum Difference of Pairs
  653. 2641. Cousins in Binary Tree II
  654. 2642. Design Graph With Shortest Path Calculator
  655. 2657. Find the Prefix Common Array of Two Arrays
  656. 2658. Maximum Number of Fish in a Grid
  657. 2661. First Completely Painted Row or Column
  658. 2678. Number of Senior Citizens
  659. 2683. Neighboring Bitwise XOR
  660. 2684. Maximum Number of Moves in a Grid
  661. 2685. Count the Number of Complete Components
  662. 2696. Minimum String Length After Removing Substrings
  663. 2698. Find the Punishment Number of an Integer
  664. 2699. Modify Graph Edge Weights
  665. 2706. Buy Two Chocolates
  666. 2707. Extra Characters in a String
  667. 2709. Greatest Common Divisor Traversal
  668. 2742. Painting the Walls
  669. 2751. Robot Collisions
  670. 2762. Continuous Subarrays
  671. 2779. Maximum Beauty of an Array After Applying Operation
  672. 2780. Minimum Index of a Valid Split
  673. 2785. Sort Vowels in a String
  674. 2807. Insert Greatest Common Divisors in Linked List
  675. 2812. Find the Safest Path in a Grid
  676. 2816. Double a Number Represented as a Linked List
  677. 2818. Apply Operations to Maximize Score
  678. 2825. Make String a Subsequence Using Cyclic Increments
  679. 2843. Count Symmetric Integers
  680. 2849. Determine if a Cell Is Reachable at a Given Time
  681. 2864. Maximum Odd Binary Number
  682. 2870. Minimum Number of Operations to Make Array Empty
  683. 2872. Maximum Number of K-Divisible Components
  684. 2873. Maximum Value of an Ordered Triplet I
  685. 2874. Maximum Value of an Ordered Triplet II
  686. 2914. Minimum Number of Changes to Make Binary String Beautiful
  687. 2924. Find Champion II
  688. 2938. Separate Black and White Balls
  689. 2940. Find Building Where Alice and Bob Can Meet
  690. 2948. Make Lexicographically Smallest Array by Swapping Elements
  691. 2958. Length of Longest Subarray With at Most K Frequency
  692. 2962. Count Subarrays Where Max Element Appears at Least K Times
  693. 2965. Find Missing and Repeated Values
  694. 2966. Divide Array Into Arrays With Max Difference
  695. 2971. Find Polygon With the Largest Perimeter
  696. 2976. Minimum Cost to Convert String I
  697. 2981. Find Longest Special Substring That Occurs Thrice I
  698. 2997. Minimum Number of Operations to Make Array XOR Equal to K
  699. 2999. Count the Number of Powerful Integers
  700. 3005. Count Elements With Maximum Frequency
  701. 3011. Find if Array Can Be Sorted
  702. 3016. Minimum Number of Pushes to Type Word II
  703. 3042. Count Prefix and Suffix Pairs I
  704. 3043. Find the Length of the Longest Common Prefix
  705. 3066. Minimum Operations to Exceed Threshold Value II
  706. 3068. Find the Maximum Sum of Node Values
  707. 3075. Maximize Happiness of Selected Children
  708. 3097. Shortest Subarray With OR at Least K II
  709. 3105. Longest Strictly Increasing or Strictly Decreasing Subarray
  710. 3108. Minimum Cost Walk in Weighted Graph
  711. 3110. Score of a String
  712. 3133. Minimum Array End
  713. 3151. Special Array I
  714. 3152. Special Array II
  715. 3160. Find the Number of Distinct Colors Among the Balls
  716. 3163. String Compression III
  717. 3169. Count Days Without Meetings
  718. 3174. Clear Digits
  719. 3191. Minimum Operations to Make Binary Array Elements Equal to One I
  720. 3203. Find Minimum Diameter After Merging Two Trees
  721. 3208. Alternating Groups II
  722. 3217. Delete Nodes From Linked List Present in Array
  723. 3223. Minimum Length of String After Operations
  724. 3243. Shortest Distance After Road Addition Queries I
  725. 3254. Find the Power of K-Size Subarrays I
  726. 3264. Final Array State After K Multiplication Operations I
  727. 3272. Find the Count of Good Integers
  728. 3306. Count of Substrings Containing Every Vowel and K Consonants II
  729. 3356. Zero Array Transformation II
  730. 3375. Minimum Operations to Make Array Values Equal to K
  731. 3394. Check if Grid can be Cut into Sections
  732. 3396. Minimum Number of Operations to Make Elements in Array Distinct