← back
Hash Table
675 questions · 0 seen
All Hash Table problems
Hash Table
1
Actions
⊣ Practice
Hash Table
⊣ Quiz
Hash Table
Problems
⊣ 1 Two Sum
Easy
⊣ 3 Longest Substring Without Repeating Characters
Medium
⊣ 12 Integer to Roman
Medium
⊣ 13 Roman to Integer
Easy
⊣ 17 Letter Combinations of a Phone Number
Medium
⊣ 30 Substring with Concatenation of All Words
Hard
⊣ 36 Valid Sudoku
Medium
⊣ 37 Sudoku Solver
Hard
⊣ 41 First Missing Positive
Hard
⊣ 49 Group Anagrams
Medium
⊣ 73 Set Matrix Zeroes
Medium
⊣ 76 Minimum Window Substring
Hard
⊣ 105 Construct Binary Tree from Preorder and Inorder Traversal
Medium
⊣ 106 Construct Binary Tree from Inorder and Postorder Traversal
Medium
⊣ 126 Word Ladder II
Hard
⊣ 127 Word Ladder
Hard
⊣ 128 Longest Consecutive Sequence
Medium
⊣ 133 Clone Graph
Medium
⊣ 138 Copy List with Random Pointer
Medium
⊣ 139 Word Break
Medium
⊣ 140 Word Break II
Hard
⊣ 141 Linked List Cycle
Easy
⊣ 142 Linked List Cycle II
Medium
⊣ 146 LRU Cache
Medium
⊣ 149 Max Points on a Line
Hard
⊣ 160 Intersection of Two Linked Lists
Easy
⊣ 166 Fraction to Recurring Decimal
Medium
⊣ 169 Majority Element
Easy
⊣ 187 Repeated DNA Sequences
Medium
⊣ 202 Happy Number
Easy
⊣ 205 Isomorphic Strings
Easy
⊣ 208 Implement Trie (Prefix Tree)
Medium
⊣ 217 Contains Duplicate
Easy
⊣ 219 Contains Duplicate II
Easy
⊣ 229 Majority Element II
Medium
⊣ 242 Valid Anagram
Easy
⊣ 264 Ugly Number II
Medium
⊣ 268 Missing Number
Easy
⊣ 290 Word Pattern
Easy
⊣ 299 Bulls and Cows
Medium
⊣ 336 Palindrome Pairs
Hard
⊣ 347 Top K Frequent Elements
Medium
⊣ 349 Intersection of Two Arrays
Easy
⊣ 350 Intersection of Two Arrays II
Easy
⊣ 352 Data Stream as Disjoint Intervals
Hard
⊣ 355 Design Twitter
Medium
⊣ 380 Insert Delete GetRandom O(1)
Medium
⊣ 381 Insert Delete GetRandom O(1) - Duplicates allowed
Hard
⊣ 383 Ransom Note
Easy
⊣ 387 First Unique Character in a String
Easy
⊣ 389 Find the Difference
Easy
⊣ 391 Perfect Rectangle
Hard
⊣ 395 Longest Substring with At Least K Repeating Characters
Medium
⊣ 398 Random Pick Index
Medium
⊣ 409 Longest Palindrome
Easy
⊣ 421 Maximum XOR of Two Numbers in an Array
Medium
⊣ 423 Reconstruct Original Digits from English
Medium
⊣ 424 Longest Repeating Character Replacement
Medium
⊣ 432 All O`one Data Structure
Hard
⊣ 433 Minimum Genetic Mutation
Medium
⊣ 438 Find All Anagrams in a String
Medium
⊣ 442 Find All Duplicates in an Array
Medium
⊣ 447 Number of Boomerangs
Medium
⊣ 448 Find All Numbers Disappeared in an Array
Easy
⊣ 451 Sort Characters By Frequency
Medium
⊣ 454 4Sum II
Medium
⊣ 457 Circular Array Loop
Medium
⊣ 460 LFU Cache
Hard
⊣ 480 Sliding Window Median
Hard
⊣ 491 Non-decreasing Subsequences
Medium
⊣ 496 Next Greater Element I
Easy
⊣ 500 Keyboard Row
Easy
⊣ 508 Most Frequent Subtree Sum
Medium
⊣ 519 Random Flip Matrix
Medium
⊣ 522 Longest Uncommon Subsequence II
Medium
⊣ 523 Continuous Subarray Sum
Medium
⊣ 525 Contiguous Array
Medium
⊣ 532 K-diff Pairs in an Array
Medium
⊣ 535 Encode and Decode TinyURL
Medium
⊣ 554 Brick Wall
Medium
⊣ 560 Subarray Sum Equals K
Medium
⊣ 567 Permutation in String
Medium
⊣ 575 Distribute Candies
Easy
⊣ 594 Longest Harmonious Subsequence
Easy
⊣ 599 Minimum Index Sum of Two Lists
Easy
⊣ 609 Find Duplicate File in System
Medium
⊣ 621 Task Scheduler
Medium
⊣ 632 Smallest Range Covering Elements from K Lists
Hard
⊣ 645 Set Mismatch
Easy
⊣ 648 Replace Words
Medium
⊣ 652 Find Duplicate Subtrees
Medium
⊣ 653 Two Sum IV - Input is a BST
Easy
⊣ 659 Split Array into Consecutive Subsequences
Medium
⊣ 676 Implement Magic Dictionary
Medium
⊣ 677 Map Sum Pairs
Medium
⊣ 690 Employee Importance
Medium
⊣ 691 Stickers to Spell Word
Hard
⊣ 692 Top K Frequent Words
Medium
⊣ 697 Degree of an Array
Easy
⊣ 705 Design HashSet
Easy
⊣ 706 Design HashMap
Easy
⊣ 710 Random Pick with Blacklist (PRO)
Hard
⊣ 720 Longest Word in Dictionary
Medium
⊣ 721 Accounts Merge
Medium
⊣ 726 Number of Atoms
Hard
⊣ 736 Parse Lisp Expression
Hard
⊣ 740 Delete and Earn
Medium
⊣ 745 Prefix and Suffix Search
Hard
⊣ 748 Shortest Completing Word
Easy
⊣ 752 Open the Lock
Medium
⊣ 756 Pyramid Transition Matrix
Medium
⊣ 763 Partition Labels
Medium
⊣ 767 Reorganize String
Medium
⊣ 770 Basic Calculator IV
Hard
⊣ 771 Jewels and Stones
Easy
⊣ 781 Rabbits in Forest
Medium
⊣ 791 Custom Sort String
Medium
⊣ 792 Number of Matching Subsequences
Medium
⊣ 804 Unique Morse Code Words
Easy
⊣ 805 Split Array With Same Average
Hard
⊣ 811 Subdomain Visit Count
Medium
⊣ 815 Bus Routes
Hard
⊣ 817 Linked List Components
Medium
⊣ 819 Most Common Word
Easy
⊣ 820 Short Encoding of Words
Medium
⊣ 822 Card Flipping Game
Medium
⊣ 823 Binary Trees With Factors
Medium
⊣ 828 Count Unique Characters of All Substrings of a Given String
Hard
⊣ 833 Find And Replace in String
Medium
⊣ 839 Similar String Groups
Hard
⊣ 840 Magic Squares In Grid
Medium
⊣ 846 Hand of Straights
Medium
⊣ 854 K-Similar Strings
Hard
⊣ 859 Buddy Strings
Easy
⊣ 863 All Nodes Distance K in Binary Tree
Medium
⊣ 865 Smallest Subtree with all the Deepest Nodes
Medium
⊣ 869 Reordered Power of 2
Medium
⊣ 873 Length of Longest Fibonacci Subsequence
Medium
⊣ 874 Walking Robot Simulation
Medium
⊣ 884 Uncommon Words from Two Sentences
Easy
⊣ 888 Fair Candy Swap
Easy
⊣ 889 Construct Binary Tree from Preorder and Postorder Traversal
Medium
⊣ 890 Find and Replace Pattern
Medium
⊣ 893 Groups of Special-Equivalent Strings
Medium
⊣ 895 Maximum Frequency Stack
Hard
⊣ 904 Fruit Into Baskets
Medium
⊣ 911 Online Election
Medium
⊣ 914 X of a Kind in a Deck of Cards
Easy
⊣ 916 Word Subsets
Medium
⊣ 923 3Sum With Multiplicity
Medium
⊣ 924 Minimize Malware Spread
Hard
⊣ 928 Minimize Malware Spread II
Hard
⊣ 929 Unique Email Addresses
Easy
⊣ 930 Binary Subarrays With Sum
Medium
⊣ 939 Minimum Area Rectangle
Medium
⊣ 947 Most Stones Removed with Same Row or Column
Medium
⊣ 952 Largest Component Size by Common Factor
Hard
⊣ 953 Verifying an Alien Dictionary
Easy
⊣ 954 Array of Doubled Pairs
Medium
⊣ 957 Prison Cells After N Days
Medium
⊣ 959 Regions Cut By Slashes
Medium
⊣ 961 N-Repeated Element in Size 2N Array
Easy
⊣ 963 Minimum Area Rectangle II
Medium
⊣ 966 Vowel Spellchecker
Medium
⊣ 970 Powerful Integers
Medium
⊣ 974 Subarray Sums Divisible by K
Medium
⊣ 981 Time Based Key-Value Store
Medium
⊣ 982 Triples with Bitwise AND Equal To Zero
Hard
⊣ 987 Vertical Order Traversal of a Binary Tree
Hard
⊣ 992 Subarrays with K Different Integers
Hard
⊣ 996 Number of Squareful Arrays
Hard
⊣ 997 Find the Town Judge
Easy
⊣ 1001 Grid Illumination
Hard
⊣ 1002 Find Common Characters
Easy
⊣ 1010 Pairs of Songs With Total Durations Divisible by 60
Medium
⊣ 1015 Smallest Integer Divisible by K
Medium
⊣ 1016 Binary String With Substrings Representing 1 To N
Medium
⊣ 1027 Longest Arithmetic Subsequence
Medium
⊣ 1036 Escape a Large Maze
Hard
⊣ 1048 Longest String Chain
Medium
⊣ 1054 Distant Barcodes
Medium
⊣ 1072 Flip Columns For Maximum Number of Equal Rows
Medium
⊣ 1074 Number of Submatrices That Sum to Target
Hard
⊣ 1079 Letter Tile Possibilities
Medium
⊣ 1090 Largest Values From Labels
Medium
⊣ 1096 Brace Expansion II
Hard
⊣ 1110 Delete Nodes And Return Forest
Medium
⊣ 1122 Relative Sort Array
Easy
⊣ 1123 Lowest Common Ancestor of Deepest Leaves
Medium
⊣ 1124 Longest Well-Performing Interval
Medium
⊣ 1128 Number of Equivalent Domino Pairs
Easy
⊣ 1138 Alphabet Board Path
Medium
⊣ 1146 Snapshot Array
Medium
⊣ 1156 Swap For Longest Repeated Character Substring
Medium
⊣ 1160 Find Words That Can Be Formed by Characters
Easy
⊣ 1169 Invalid Transactions
Medium
⊣ 1170 Compare Strings by Frequency of the Smallest Character
Medium
⊣ 1171 Remove Zero Sum Consecutive Nodes from Linked List
Medium
⊣ 1172 Dinner Plate Stacks
Hard
⊣ 1177 Can Make Palindrome from Substring
Medium
⊣ 1178 Number of Valid Words for Each Puzzle
Hard
⊣ 1189 Maximum Number of Balloons
Easy
⊣ 1202 Smallest String With Swaps
Medium
⊣ 1207 Unique Number of Occurrences
Easy
⊣ 1218 Longest Arithmetic Subsequence of Given Difference
Medium
⊣ 1224 Maximum Equal Frequency
Hard
⊣ 1248 Count Number of Nice Subarrays
Medium
⊣ 1255 Maximum Score Words Formed by Letters
Hard
⊣ 1261 Find Elements in a Contaminated Binary Tree
Medium
⊣ 1275 Find Winner on a Tic Tac Toe Game
Easy
⊣ 1282 Group the People Given the Group Size They Belong To
Medium
⊣ 1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
Hard
⊣ 1296 Divide Array in Sets of K Consecutive Numbers
Medium
⊣ 1297 Maximum Number of Occurrences of a Substring
Medium
⊣ 1311 Get Watched Videos by Your Friends
Medium
⊣ 1331 Rank Transform of an Array
Easy
⊣ 1338 Reduce Array Size to The Half
Medium
⊣ 1345 Jump Game IV
Hard
⊣ 1346 Check If N and Its Double Exist
Easy
⊣ 1347 Minimum Number of Steps to Make Two Strings Anagram
Medium
⊣ 1348 Tweet Counts Per Frequency
Medium
⊣ 1357 Apply Discount Every n Orders
Medium
⊣ 1358 Number of Substrings Containing All Three Characters
Medium
⊣ 1365 How Many Numbers Are Smaller Than the Current Number
Easy
⊣ 1366 Rank Teams by Votes
Medium
⊣ 1370 Increasing Decreasing String
Easy
⊣ 1371 Find the Longest Substring Containing Vowels in Even Counts
Medium
⊣ 1386 Cinema Seat Allocation
Medium
⊣ 1394 Find Lucky Integer in an Array
Easy
⊣ 1396 Design Underground System
Medium
⊣ 1399 Count Largest Group
Easy
⊣ 1400 Construct K Palindrome Strings
Medium
⊣ 1410 HTML Entity Parser
Medium
⊣ 1418 Display Table of Food Orders in a Restaurant
Medium
⊣ 1436 Destination City
Easy
⊣ 1442 Count Triplets That Can Form Two Arrays of Equal XOR
Medium
⊣ 1443 Minimum Time to Collect All Apples in a Tree
Medium
⊣ 1452 People Whose List of Favorite Companies Is Not a Subset of Another List
Medium
⊣ 1460 Make Two Arrays Equal by Reversing Subarrays
Easy
⊣ 1461 Check If a String Contains All Binary Codes of Size K
Medium
⊣ 1477 Find Two Non-overlapping Sub-arrays Each With Target Sum
Medium
⊣ 1481 Least Number of Unique Integers after K Removals
Medium
⊣ 1487 Making File Names Unique
Medium
⊣ 1488 Avoid Flood in The City
Medium
⊣ 1496 Path Crossing
Easy
⊣ 1497 Check If Array Pairs Are Divisible by k
Medium
⊣ 1512 Number of Good Pairs
Easy
⊣ 1519 Number of Nodes in the Sub-Tree With the Same Label (PRO)
Medium
⊣ 1520 Maximum Number of Non-Overlapping Substrings
Hard
⊣ 1525 Number of Good Ways to Split a String
Medium
⊣ 1540 Can Convert String in K Moves
Medium
⊣ 1542 Find Longest Awesome Substring
Hard
⊣ 1546 Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
Medium
⊣ 1562 Find Latest Group of Size M
Medium
⊣ 1577 Number of Ways Where Square of Number Is Equal to Product of Two Numbers
Medium
⊣ 1590 Make Sum Divisible by P (PRO)
Medium
⊣ 1593 Split a String Into the Max Number of Unique Substrings
Medium
⊣ 1600 Throne Inheritance
Medium
⊣ 1604 Alert Using Same Key-Card Three or More Times in a One Hour Period
Medium
⊣ 1624 Largest Substring Between Two Equal Characters
Easy
⊣ 1630 Arithmetic Subarrays
Medium
⊣ 1636 Sort Array by Increasing Frequency
Easy
⊣ 1638 Count Substrings That Differ by One Character (PRO)
Medium
⊣ 1640 Check Array Formation Through Concatenation
Easy
⊣ 1647 Minimum Deletions to Make Character Frequencies Unique
Medium
⊣ 1654 Minimum Jumps to Reach Home
Medium
⊣ 1655 Distribute Repeating Integers
Hard
⊣ 1656 Design an Ordered Stream
Easy
⊣ 1657 Determine if Two Strings Are Close
Medium
⊣ 1658 Minimum Operations to Reduce X to Zero
Medium
⊣ 1674 Minimum Moves to Make Array Complementary
Medium
⊣ 1679 Max Number of K-Sum Pairs
Medium
⊣ 1681 Minimum Incompatibility
Hard
⊣ 1684 Count the Number of Consistent Strings (PRO)
Easy
⊣ 1695 Maximum Erasure Value
Medium
⊣ 1711 Count Good Meals (PRO)
Medium
⊣ 1713 Minimum Operations to Make a Subsequence
Hard
⊣ 1719 Number Of Ways To Reconstruct A Tree
Hard
⊣ 1726 Tuple with Same Product
Medium
⊣ 1733 Minimum Number of People to Teach
Medium
⊣ 1737 Change Minimum Characters to Satisfy One of Three Conditions
Medium
⊣ 1742 Maximum Number of Balls in a Box
Easy
⊣ 1743 Restore the Array From Adjacent Pairs
Medium
⊣ 1748 Sum of Unique Elements (PRO)
Easy
⊣ 1763 Longest Nice Substring (PRO)
Easy
⊣ 1775 Equal Sum Arrays With Minimum Number of Operations
Medium
⊣ 1781 Sum of Beauty of All Substrings (PRO)
Medium
⊣ 1782 Count Pairs Of Nodes
Hard
⊣ 1787 Make the XOR of All Segments Equal to Zero
Hard
⊣ 1790 Check if One String Swap Can Make Strings Equal
Easy
⊣ 1796 Second Largest Digit in a String
Easy
⊣ 1797 Design Authentication Manager
Medium
⊣ 1805 Number of Different Integers in a String
Easy
⊣ 1807 Evaluate the Bracket Pairs of a String (PRO)
Medium
⊣ 1814 Count Nice Pairs in an Array (PRO)
Medium
⊣ 1817 Finding the Users Active Minutes (PRO)
Medium
⊣ 1830 Minimum Number of Operations to Make String Sorted
Hard
⊣ 1832 Check if the Sentence Is Pangram
Easy
⊣ 1857 Largest Color Value in a Directed Graph
Hard
⊣ 1865 Finding Pairs With a Certain Sum
Medium
⊣ 1876 Substrings of Size Three with Distinct Characters (PRO)
Easy
⊣ 1893 Check if All the Integers in a Range Are Covered
Easy
⊣ 1897 Redistribute Characters to Make All Strings Equal
Easy
⊣ 1912 Design Movie Rental System
Hard
⊣ 1915 Number of Wonderful Substrings
Medium
⊣ 1930 Unique Length-3 Palindromic Subsequences (PRO)
Medium
⊣ 1932 Merge BSTs to Create Single BST
Hard
⊣ 1935 Maximum Number of Words You Can Type (PRO)
Easy
⊣ 1938 Maximum Genetic Difference Query (PRO)
Hard
⊣ 1941 Check if All Characters Have Equal Number of Occurrences (PRO)
Easy
⊣ 1942 The Number of the Smallest Unoccupied Chair
Medium
⊣ 1943 Describe the Painting
Medium
⊣ 1948 Delete Duplicate Folders in System (PRO)
Hard
⊣ 1980 Find Unique Binary String
Medium
⊣ 1993 Operations on Tree
Medium
⊣ 1994 The Number of Good Subsets
Hard
⊣ 1995 Count Special Quadruplets (PRO)
Easy
⊣ 2001 Number of Pairs of Interchangeable Rectangles
Medium
⊣ 2006 Count Number of Pairs With Absolute Difference K
Easy
⊣ 2007 Find Original Array From Doubled Array
Medium
⊣ 2008 Maximum Earnings From Taxi
Medium
⊣ 2009 Minimum Number of Operations to Make Array Continuous
Hard
⊣ 2013 Detect Squares
Medium
⊣ 2014 Longest Subsequence Repeated k Times
Hard
⊣ 2019 The Score of Students Solving Math Expression
Hard
⊣ 2023 Number of Pairs of Strings With Concatenation Equal to Target
Medium
⊣ 2025 Maximum Number of Ways to Partition an Array
Hard
⊣ 2032 Two Out of Three
Easy
⊣ 2034 Stock Price Fluctuation
Medium
⊣ 2043 Simple Bank System
Medium
⊣ 2048 Next Greater Numerically Balanced Number
Medium
⊣ 2053 Kth Distinct String in an Array
Easy
⊣ 2062 Count Vowel Substrings of a String
Easy
⊣ 2068 Check Whether Two Strings are Almost Equivalent
Easy
⊣ 2080 Range Frequency Queries
Medium
⊣ 2085 Count Common Words With One Occurrence
Easy
⊣ 2094 Finding 3-Digit Even Numbers
Easy
⊣ 2099 Find Subsequence of Length K With the Largest Sum
Easy
⊣ 2103 Rings and Rods
Easy
⊣ 2115 Find All Possible Recipes from Given Supplies
Medium
⊣ 2121 Intervals Between Identical Elements
Medium
⊣ 2122 Recover the Original Array
Hard
⊣ 2131 Longest Palindrome by Concatenating Two Letter Words
Medium
⊣ 2133 Check if Every Row and Column Contains All Numbers
Easy
⊣ 2135 Count Words Obtained After Adding a Letter
Medium
⊣ 2150 Find All Lonely Numbers in the Array
Medium
⊣ 2154 Keep Multiplying Found Values by Two
Easy
⊣ 2157 Groups of Strings (PRO)
Hard
⊣ 2166 Design Bitset
Medium
⊣ 2170 Minimum Operations to Make the Array Alternating
Medium
⊣ 2182 Construct String With Repeat Limit
Medium
⊣ 2183 Count Array Pairs Divisible by K
Hard
⊣ 2186 Minimum Number of Steps to Make Two Strings Anagram II
Medium
⊣ 2190 Most Frequent Number Following Key In an Array
Easy
⊣ 2196 Create Binary Tree From Descriptions
Medium
⊣ 2201 Count Artifacts That Can Be Extracted
Medium
⊣ 2206 Divide Array Into Equal Pairs
Easy
⊣ 2215 Find the Difference of Two Arrays
Easy
⊣ 2225 Find Players With Zero or One Losses
Medium
⊣ 2227 Encrypt and Decrypt Strings
Hard
⊣ 2244 Minimum Rounds to Complete All Tasks
Medium
⊣ 2248 Intersection of Multiple Arrays
Easy
⊣ 2249 Count Lattice Points Inside a Circle
Medium
⊣ 2250 Count Number of Rectangles Containing Each Point
Medium
⊣ 2251 Number of Flowers in Full Bloom
Hard
⊣ 2260 Minimum Consecutive Cards to Pick Up
Medium
⊣ 2261 K Divisible Elements Subarrays (PRO)
Medium
⊣ 2262 Total Appeal of A String
Hard
⊣ 2266 Count Number of Texts
Medium
⊣ 2272 Substring With Largest Variance
Hard
⊣ 2273 Find Resultant Array After Removing Anagrams
Easy
⊣ 2275 Largest Combination With Bitwise AND Greater Than Zero
Medium
⊣ 2283 Check if Number Has Equal Digit Count and Digit Value
Easy
⊣ 2284 Sender With Largest Word Count
Medium
⊣ 2287 Rearrange Characters to Make Target String
Easy
⊣ 2295 Replace Elements in an Array
Medium
⊣ 2301 Match Substring After Replacement (PRO)
Hard
⊣ 2306 Naming a Company
Hard
⊣ 2309 Greatest English Letter in Upper and Lower Case
Easy
⊣ 2325 Decode the Message
Easy
⊣ 2336 Smallest Number in Infinite Set
Medium
⊣ 2341 Maximum Number of Pairs in Array
Easy
⊣ 2342 Max Sum of a Pair With Equal Sum of Digits
Medium
⊣ 2347 Best Poker Hand
Easy
⊣ 2349 Design a Number Container System
Medium
⊣ 2350 Shortest Impossible Sequence of Rolls
Hard
⊣ 2351 First Letter to Appear Twice
Easy
⊣ 2352 Equal Row and Column Pairs
Medium
⊣ 2353 Design a Food Rating System
Medium
⊣ 2354 Number of Excellent Pairs
Hard
⊣ 2357 Make Array Zero by Subtracting Equal Amounts
Easy
⊣ 2363 Merge Similar Items
Easy
⊣ 2364 Count Number of Bad Pairs
Medium
⊣ 2365 Task Scheduler II
Medium
⊣ 2367 Number of Arithmetic Triplets
Easy
⊣ 2368 Reachable Nodes With Restrictions
Medium
⊣ 2370 Longest Ideal Subsequence
Medium
⊣ 2374 Node With Highest Edge Score
Medium
⊣ 2384 Largest Palindromic Number
Medium
⊣ 2385 Amount of Time for Binary Tree to Be Infected
Medium
⊣ 2395 Find Subarrays With Equal Sum
Easy
⊣ 2399 Check Distances Between Same Letters
Easy
⊣ 2402 Meeting Rooms III
Hard
⊣ 2404 Most Frequent Even Element
Easy
⊣ 2405 Optimal Partition of String
Medium
⊣ 2418 Sort the People
Easy
⊣ 2421 Number of Good Paths
Hard
⊣ 2423 Remove Letter To Equalize Frequency
Easy
⊣ 2424 Longest Uploaded Prefix
Medium
⊣ 2434 Using a Robot to Print the Lexicographically Smallest String
Medium
⊣ 2441 Largest Positive Integer That Exists With Its Negative
Easy
⊣ 2442 Count Number of Distinct Integers After Reverse Operations
Medium
⊣ 2451 Odd String Difference
Easy
⊣ 2453 Destroy Sequential Targets
Medium
⊣ 2456 Most Popular Video Creator
Medium
⊣ 2461 Maximum Sum of Distinct Subarrays With Length K
Medium
⊣ 2465 Number of Distinct Averages
Easy
⊣ 2475 Number of Unequal Triplets in Array
Easy
⊣ 2488 Count Subarrays With Median K
Hard
⊣ 2491 Divide Players Into Teams of Equal Skill
Medium
⊣ 2499 Minimum Total Cost to Make Arrays Unequal
Hard
⊣ 2501 Longest Square Streak in an Array
Medium
⊣ 2502 Design Memory Allocator
Medium
⊣ 2506 Count Pairs Of Similar Strings
Easy
⊣ 2508 Add Edges to Make Degrees of All Nodes Even
Hard
⊣ 2512 Reward Top K Students
Medium
⊣ 2514 Count Anagrams
Hard
⊣ 2516 Take K of Each Character From Left and Right
Medium
⊣ 2521 Distinct Prime Factors of Product of Array
Medium
⊣ 2526 Find Consecutive Integers from a Data Stream
Medium
⊣ 2531 Make Number of Distinct Characters Equal (PRO)
Medium
⊣ 2537 Count the Number of Good Subarrays
Medium
⊣ 2540 Minimum Common Value
Easy
⊣ 2547 Minimum Cost to Split an Array
Hard
⊣ 2549 Count Distinct Numbers on Board
Easy
⊣ 2554 Maximum Number of Integers to Choose From a Range I
Medium
⊣ 2561 Rearranging Fruits
Hard
⊣ 2564 Substring XOR Queries (PRO)
Medium
⊣ 2570 Merge Two 2D Arrays by Summing Values
Easy
⊣ 2581 Count Number of Possible Root Nodes
Hard
⊣ 2584 Split the Array to Make Coprime Products
Hard
⊣ 2588 Count the Number of Beautiful Subarrays
Medium
⊣ 2593 Find Score of an Array After Marking All Elements
Medium
⊣ 2597 The Number of Beautiful Subsets
Medium
⊣ 2598 Smallest Missing Non-negative Integer After Operations (PRO)
Medium
⊣ 2605 Form Smallest Number From Two Digit Arrays
Easy
⊣ 2606 Find the Substring With Maximum Cost
Medium
⊣ 2610 Convert an Array Into a 2D Array With Conditions
Medium
⊣ 2612 Minimum Reverse Operations
Hard
⊣ 2615 Sum of Distances
Medium
⊣ 2641 Cousins in Binary Tree II
Medium
⊣ 2653 Sliding Subarray Beauty
Medium
⊣ 2657 Find the Prefix Common Array of Two Arrays
Medium
⊣ 2661 First Completely Painted Row or Column
Medium
⊣ 2670 Find the Distinct Difference Array
Easy
⊣ 2671 Frequency Tracker
Medium
⊣ 2682 Find the Losers of the Circular Game
Easy
⊣ 2707 Extra Characters in a String
Medium
⊣ 2711 Difference of Number of Distinct Values on Diagonals
Medium
⊣ 2713 Maximum Strictly Increasing Cells in a Matrix
Hard
⊣ 2716 Minimize String Length
Easy
⊣ 2718 Sum of Matrix After Queries
Medium
⊣ 2729 Check if The Number is Fascinating (PRO)
Easy
⊣ 2732 Find a Good Subset of the Matrix
Hard
⊣ 2744 Find Maximum Number of String Pairs
Easy
⊣ 2747 Count Zero Request Servers
Medium
⊣ 2748 Number of Beautiful Pairs
Easy
⊣ 2763 Sum of Imbalance Numbers of All Subarrays
Hard
⊣ 2766 Relocate Marbles
Medium
⊣ 2767 Partition String Into Minimum Beautiful Substrings
Medium
⊣ 2768 Number of Black Blocks
Medium
⊣ 2780 Minimum Index of a Valid Split
Medium
⊣ 2781 Length of the Longest Valid Substring
Hard
⊣ 2784 Check if Array is Good
Easy
⊣ 2799 Count Complete Subarrays in an Array
Medium
⊣ 2808 Minimum Seconds to Equalize a Circular Array
Medium
⊣ 2813 Maximum Elegance of a K-Length Subsequence
Hard
⊣ 2815 Max Pair Sum in an Array
Easy
⊣ 2830 Maximize the Profit as the Salesman
Medium
⊣ 2831 Find the Longest Equal Subarray
Medium
⊣ 2840 Check if Strings Can be Made Equal With Operations II
Medium
⊣ 2841 Maximum Sum of Almost Unique Subarray
Medium
⊣ 2842 Count K-Subsequences of a String With Maximum Beauty
Hard
⊣ 2845 Count of Interesting Subarrays
Medium
⊣ 2848 Points That Intersect With Cars
Easy
⊣ 2856 Minimum Array Length After Pair Removals
Medium
⊣ 2857 Count Pairs of Points With Distance k
Medium
⊣ 2869 Minimum Operations to Collect Elements
Easy
⊣ 2870 Minimum Number of Operations to Make Array Empty
Medium
⊣ 2875 Minimum Size Subarray in Infinite Array
Medium
⊣ 2897 Apply Operations on Array to Maximize Sum of Squares
Hard
⊣ 2902 Count of Sub-Multisets With Bounded Sum
Hard
⊣ 2910 Minimum Number of Groups to Create a Valid Assignment
Medium
⊣ 2913 Subarrays Distinct Element Sum of Squares I
Easy
⊣ 2932 Maximum Strong Pair XOR I
Easy
⊣ 2933 High-Access Employees
Medium
⊣ 2935 Maximum Strong Pair XOR II
Hard
⊣ 2947 Count Beautiful Substrings I
Medium
⊣ 2949 Count Beautiful Substrings II
Hard
⊣ 2953 Count Complete Substrings
Hard
⊣ 2956 Find Common Elements Between Two Arrays
Easy
⊣ 2958 Length of Longest Subarray With at Most K Frequency
Medium
⊣ 2963 Count the Number of Good Partitions
Hard
⊣ 2965 Find Missing and Repeated Values
Easy
⊣ 2975 Maximum Square Area by Removing Fences From a Field
Medium
⊣ 2981 Find Longest Special Substring That Occurs Thrice I
Medium
⊣ 2982 Find Longest Special Substring That Occurs Thrice II
Medium
⊣ 2983 Palindrome Rearrangement Queries
Hard
⊣ 2996 Smallest Missing Integer Greater Than Sequential Prefix Sum
Easy
⊣ 3002 Maximum Size of a Set After Removals
Medium
⊣ 3005 Count Elements With Maximum Frequency
Easy
⊣ 3013 Divide an Array Into Subarrays With Minimum Cost II
Hard
⊣ 3016 Minimum Number of Pushes to Type Word II
Medium
⊣ 3020 Find the Maximum Number of Elements in Subset
Medium
⊣ 3026 Maximum Good Subarray Sum
Medium
⊣ 3035 Maximum Palindromes After Operations
Medium
⊣ 3039 Apply Operations to Make String Empty
Medium
⊣ 3043 Find the Length of the Longest Common Prefix
Medium
⊣ 3044 Most Frequent Prime
Medium
⊣ 3046 Split the Array
Easy
⊣ 3071 Minimum Operations to Write the Letter Y on a Grid
Medium
⊣ 3076 Shortest Uncommon Substring in an Array
Medium
⊣ 3080 Mark Elements on Array by Performing Queries
Medium
⊣ 3081 Replace Question Marks in String to Minimize Its Value
Medium
⊣ 3083 Existence of a Substring in a String and Its Reverse
Easy
⊣ 3085 Minimum Deletions to Make String K-Special
Medium
⊣ 3090 Maximum Length Substring With Two Occurrences
Easy
⊣ 3092 Most Frequent IDs
Medium
⊣ 3120 Count the Number of Special Characters I
Easy
⊣ 3121 Count the Number of Special Characters II
Medium
⊣ 3128 Right Triangles
Medium
⊣ 3134 Find the Median of the Uniqueness Array
Hard
⊣ 3137 Minimum Number of Operations to Make Word K-Periodic
Medium
⊣ 3138 Minimum Length of Anagram Concatenation
Medium
⊣ 3143 Maximum Points Inside the Square
Medium
⊣ 3144 Minimum Substring Partition of Equal Character Frequency
Medium
⊣ 3146 Permutation Difference between Two Strings
Easy
⊣ 3153 Sum of Digit Differences of All Pairs
Medium
⊣ 3158 Find the XOR of Numbers Which Appear Twice
Easy
⊣ 3159 Find Occurrences of an Element in an Array
Medium
⊣ 3160 Find the Number of Distinct Colors Among the Balls
Medium
⊣ 3162 Find the Number of Good Pairs I
Easy
⊣ 3164 Find the Number of Good Pairs II
Medium
⊣ 3170 Lexicographically Minimum String After Removing Stars
Medium
⊣ 3176 Find the Maximum Length of a Good Subsequence I
Medium
⊣ 3177 Find the Maximum Length of a Good Subsequence II
Hard
⊣ 3184 Count Pairs That Form a Complete Day I
Easy
⊣ 3185 Count Pairs That Form a Complete Day II
Medium
⊣ 3186 Maximum Total Damage With Spell Casting
Medium
⊣ 3217 Delete Nodes From Linked List Present in Array (PRO)
Medium
⊣ 3223 Minimum Length of String After Operations
Medium
⊣ 3224 Minimum Array Changes to Make Differences Equal
Medium
⊣ 3238 Find the Number of Winning Players
Easy
⊣ 3242 Design Neighbor Sum Service
Easy
⊣ 3265 Count Almost Equal Pairs I
Medium
⊣ 3267 Count Almost Equal Pairs II
Hard
⊣ 3272 Find the Count of Good Integers
Hard
⊣ 3289 The Two Sneaky Numbers of Digitville
Easy
⊣ 3295 Report Spam Message
Medium
⊣ 3297 Count Substrings That Can Be Rearranged to Contain a String I
Medium
⊣ 3298 Count Substrings That Can Be Rearranged to Contain a String II
Hard
⊣ 3305 Count of Substrings Containing Every Vowel and K Consonants I
Medium
⊣ 3306 Count of Substrings Containing Every Vowel and K Consonants II
Medium
⊣ 3311 Construct 2D Grid Matching Graph Layout
Hard
⊣ 3312 Sorted GCD Pair Queries (PRO)
Hard
⊣ 3316 Find Maximum Removals From Source String
Medium
⊣ 3318 Find X-Sum of All K-Long Subarrays I
Easy
⊣ 3321 Find X-Sum of All K-Long Subarrays II
Hard
⊣ 3325 Count Substrings With K-Frequency Characters I
Medium
⊣ 3327 Check if DFS Strings Are Palindromes
Hard
⊣ 3331 Find Subtree Sizes After Changes
Medium
⊣ 3335 Total Characters in String After Transformations I
Medium
⊣ 3337 Total Characters in String After Transformations II
Hard
⊣ 3351 Sum of Good Subsequences
Hard
⊣ 3365 Rearrange K Substrings to Form Target String
Medium
⊣ 3371 Identify the Largest Outlier in an Array
Medium
⊣ 3375 Minimum Operations to Make Array Values Equal to K
Easy
⊣ 3378 Count Connected Components in LCM Graph
Hard
⊣ 3381 Maximum Subarray Sum With Length Divisible by K
Medium
⊣ 3389 Minimum Operations to Make Character Frequencies Equal
Hard
⊣ 3395 Subsequences with a Unique Middle Mode I
Hard
⊣ 3396 Minimum Number of Operations to Make Elements in Array Distinct
Easy
⊣ 3404 Count Special Subsequences
Medium
⊣ 3408 Design Task Manager
Medium
⊣ 3412 Find Mirror Score of a String
Medium
⊣ 3425 Longest Special Path
Hard
⊣ 3434 Maximum Frequency After Subarray Operation
Medium
⊣ 3438 Find Valid Pair of Adjacent Digits in String
Easy
⊣ 3442 Maximum Difference Between Even and Odd Frequency I (PRO)
Easy
⊣ 3443 Maximum Manhattan Distance After K Changes (PRO)
Medium
⊣ 3447 Assign Elements to Groups with Constraints
Medium
⊣ 3458 Select K Disjoint Special Substrings
Medium
⊣ 3471 Find the Largest Almost Missing Integer
Easy
⊣ 3483 Unique 3-Digit Even Numbers
Easy
⊣ 3484 Design Spreadsheet
Medium
⊣ 3486 Longest Special Path II
Hard
⊣ 3487 Maximum Unique Subarray Sum After Deletion
Easy
⊣ 3488 Closest Equal Element Queries
Medium
⊣ 3493 Properties Graph
Medium
⊣ 3505 Minimum Operations to Make Elements Within K Subarrays Equal
Hard
⊣ 3507 Minimum Pair Removal to Sort Array I
Easy
⊣ 3508 Implement Router
Medium
⊣ 3509 Maximum Product of Subsequences With an Alternating Sum Equal to K
Hard
⊣ 3510 Minimum Pair Removal to Sort Array II
Hard
⊣ 3518 Smallest Palindromic Rearrangement II
Hard
⊣ 3522 Calculate Score After Performing Instructions
Medium
⊣ 3527 Find the Most Common Response
Medium
⊣ 3531 Count Covered Buildings
Medium
⊣ 3532 Path Existence Queries in a Graph I
Medium
⊣ 3541 Find Most Frequent Vowel and Consonant
Easy
⊣ 3542 Minimum Operations to Convert All Elements to Zero
Medium
⊣ 3543 Maximum Weighted K-Edge Path
Medium
⊣ 3545 Minimum Deletions for At Most K Distinct Characters
Easy
⊣ 3548 Equal Sum Grid Partition II
Hard
⊣ 3551 Minimum Swaps to Sort by Digit Sum
Medium
⊣ 3552 Grid Teleportation Traversal
Medium
⊣ 3556 Sum of Largest Prime Substrings
Medium
⊣ 3557 Find Maximum Number of Non Intersecting Substrings
Medium
⊣ 3568 Minimum Moves to Clean the Classroom
Medium
⊣ 3572 Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values
Medium
⊣ 3583 Count Special Triplets
Medium
⊣ 3588 Find Maximum Area of a Triangle
Medium
⊣ 3591 Check if Any Element Has Prime Frequency
Easy
⊣ 3597 Partition String
Medium
⊣ 3606 Coupon Code Validator (PRO)
Easy
⊣ 3607 Power Grid Maintenance
Medium
⊣ 3623 Count Number of Trapezoids I
Medium
⊣ 3625 Count Number of Trapezoids II
Hard
⊣ 3629 Minimum Jumps to Reach End via Prime Teleportation
Medium
⊣ 3636 Threshold Majority Queries
Hard
⊣ 3654 Minimum Sum After Divisible Sum Deletions
Medium
⊣ 3659 Partition Array Into K-Distinct Groups
Medium
⊣ 3663 Find The Least Frequent Digit
Easy
⊣ 3664 Two-Letter Card Game
Medium
⊣ 3668 Restore Finishing Order
Easy
⊣ 3678 Smallest Absent Positive Greater Than Average
Easy
⊣ 3679 Minimum Discards to Balance Inventory
Medium
⊣ 3684 Maximize Sum of At Most K Distinct Elements
Easy
⊣ 3690 Split and Merge Array Transformation
Medium
⊣ 3692 Majority Frequency Characters
Easy
⊣ 3694 Distinct Points Reachable After Substring Removal
Medium
⊣ 3712 Sum of Elements With Frequency Divisible by K
Easy
⊣ 3713 Longest Balanced Substring I
Medium
⊣ 3714 Longest Balanced Substring II
Medium
⊣ 3715 Sum of Perfect Square Ancestors
Hard
⊣ 3718 Smallest Missing Multiple of K
Easy
⊣ 3719 Longest Balanced Subarray I
Medium
⊣ 3720 Lexicographically Smallest Permutation Greater Than Target
Medium
⊣ 3721 Longest Balanced Subarray II
Hard
⊣ 3728 Stable Subarrays With Equal Boundary and Interior Sum
Medium
⊣ 3729 Count Distinct Subarrays Divisible by K in Sorted Array
Hard
⊣ 3731 Find Missing Elements
Easy
⊣ 3737 Count Subarrays With Majority Element I
Medium
⊣ 3739 Count Subarrays With Majority Element II
Hard
⊣ 3740 Minimum Distance Between Three Equal Elements I
Easy
⊣ 3741 Minimum Distance Between Three Equal Elements II
Medium
⊣ 3755 Find Maximum Balanced XOR Subarray Length
Medium
⊣ 3760 Maximum Substrings With Distinct Start
Medium
⊣ 3761 Minimum Absolute Distance Between Mirror Pairs
Medium
⊣ 3779 Minimum Number of Operations to Have Distinct Elements
Medium
⊣ 3784 Minimum Deletion Cost to Make All Characters Equal
Medium
⊣ 3785 Minimum Swaps to Avoid Forbidden Values
Hard
⊣ 3790 Smallest All-Ones Multiple
Medium
⊣ 3795 Minimum Subarray Length With Distinct Sum At Least K
Medium
⊣ 3803 Count Residue Prefixes
Easy
⊣ 3804 Number of Centered Subarrays
Medium
⊣ 3805 Count Caesar Cipher Pairs
Medium
⊣ 3810 Minimum Operations to Reach Target Array
Medium
⊣ 3811 Number of Alternating XOR Partitions
Medium
⊣ 3815 Design Auction System
Medium
⊣ 3816 Lexicographically Smallest String After Deleting Duplicate Characters
Hard
⊣ 3829 Design Ride Sharing System
Medium
⊣ 3839 Number of Prefix Connected Groups
Medium
⊣ 3842 Toggle Light Bulbs
Easy
⊣ 3843 First Element with Unique Frequency
Medium