type
String LeetCode problems — visual solutions
Every LeetCode problem tagged String — the full catalogue, plus animated visual solutions in Python and Go when a deep-dive exists.
903 problems · 778 animated · 125 locked
Start with a walkthrough
Full String index
- 3Longest Substring Without Repeating CharactersWatch
- 5Longest Palindromic SubstringWatch
- 6Zigzag ConversionWatch
- 8String to Integer (atoi)Watch
- 10Regular Expression MatchingWatch
- 12Integer to RomanWatch
- 13Roman to IntegerWatch
- 14Longest Common PrefixWatch
- 17Letter Combinations of a Phone NumberWatch
- 20Valid ParenthesesWatch
- 22Generate ParenthesesWatch
- 28Find the Index of the First Occurrence in a StringWatch
- 30Substring with Concatenation of All WordsWatch
- 32Longest Valid ParenthesesWatch
- 38Count and SayWatch
- 43Multiply StringsWatch
- 44Wildcard MatchingWatch
- 49Group AnagramsWatch
- 58Length of Last WordWatch
- 65Valid NumberWatch
- 67Add BinaryWatch
- 68Text JustificationWatch
- 71Simplify PathWatch
- 72Edit DistanceWatch
- 76Minimum Window SubstringWatch
- 79Word SearchWatch
- 87Scramble StringWatch
- 91Decode WaysWatch
- 93Restore IP AddressesWatch
- 97Interleaving StringWatch
- 115Distinct SubsequencesWatch
- 125Valid PalindromeWatch
- 126Word Ladder IIWatch
- 127Word LadderWatch
- 131Palindrome PartitioningWatch
- 132Palindrome Partitioning IIWatch
- 139Word BreakWatch
- 140Word Break IIWatch
- 151Reverse Words in a StringWatch
- 159Longest Substring with At Most Two Distinct CharactersLocked
- 161One Edit DistanceLocked
- 165Compare Version NumbersWatch
- 166Fraction to Recurring DecimalWatch
- 168Excel Sheet Column TitleWatch
- 171Excel Sheet Column NumberWatch
- 179Largest NumberWatch
- 186Reverse Words in a String IILocked
- 187Repeated DNA SequencesWatch
- 205Isomorphic StringsWatch
- 208Implement Trie (Prefix Tree)Watch
- 211Design Add and Search Words Data StructureWatch
- 212Word Search IIWatch
- 214Shortest PalindromeWatch
- 224Basic CalculatorWatch
- 227Basic Calculator IIWatch
- 241Different Ways to Add ParenthesesWatch
- 242Valid AnagramWatch
- 243Shortest Word DistanceLocked
- 244Shortest Word Distance IILocked
- 245Shortest Word Distance IIILocked
- 246Strobogrammatic NumberLocked
- 247Strobogrammatic Number IILocked
- 248Strobogrammatic Number IIILocked
- 249Group Shifted StringsLocked
- 257Binary Tree PathsWatch
- 266Palindrome PermutationLocked
- 267Palindrome Permutation IILocked
- 269Alien DictionaryLocked
- 271Encode and Decode StringsLocked
- 273Integer to English WordsWatch
- 282Expression Add OperatorsWatch
- 288Unique Word AbbreviationLocked
- 290Word PatternWatch
- 291Word Pattern IILocked
- 293Flip GameLocked
- 297Serialize and Deserialize Binary TreeWatch
- 299Bulls and CowsWatch
- 301Remove Invalid ParenthesesWatch
- 306Additive NumberWatch
- 316Remove Duplicate LettersWatch
- 318Maximum Product of Word LengthsWatch
- 320Generalized AbbreviationLocked
- 331Verify Preorder Serialization of a Binary TreeWatch
- 332Reconstruct ItineraryWatch
- 336Palindrome PairsWatch
- 340Longest Substring with At Most K Distinct CharactersLocked
- 344Reverse StringWatch
- 345Reverse Vowels of a StringWatch
- 358Rearrange String k Distance ApartLocked
- 383Ransom NoteWatch
- 385Mini ParserWatch
- 387First Unique Character in a StringWatch
- 388Longest Absolute File PathWatch
- 389Find the DifferenceWatch
- 392Is SubsequenceWatch
- 394Decode StringWatch
- 395Longest Substring with At Least K Repeating CharactersWatch
- 399Evaluate DivisionWatch
- 402Remove K DigitsWatch
- 405Convert a Number to HexadecimalWatch
- 408Valid Word AbbreviationLocked
- 409Longest PalindromeWatch
- 411Minimum Unique Word AbbreviationLocked
- 412Fizz BuzzWatch
- 415Add StringsWatch
- 418Sentence Screen FittingLocked
- 420Strong Password CheckerWatch
- 423Reconstruct Original Digits from EnglishWatch
- 424Longest Repeating Character ReplacementWatch
- 425Word SquaresLocked
- 428Serialize and Deserialize N-ary TreeLocked
- 433Minimum Genetic MutationWatch
- 434Number of Segments in a StringWatch
- 438Find All Anagrams in a StringWatch
- 439Ternary Expression ParserLocked
- 443String CompressionWatch
- 449Serialize and Deserialize BSTWatch
- 451Sort Characters By FrequencyWatch
- 459Repeated Substring PatternWatch
- 466Count The RepetitionsWatch
- 467Unique Substrings in Wraparound StringWatch
- 468Validate IP AddressWatch
- 471Encode String with Shortest LengthLocked
- 472Concatenated WordsWatch
- 474Ones and ZeroesWatch
- 481Magical StringWatch
- 482License Key FormattingWatch
- 484Find PermutationLocked
- 488Zuma GameWatch
- 499The Maze IIILocked
- 500Keyboard RowWatch
- 504Base 7Watch
- 514Freedom TrailWatch
- 516Longest Palindromic SubsequenceWatch
- 520Detect CapitalWatch
- 521Longest Uncommon Subsequence IWatch
- 522Longest Uncommon Subsequence IIWatch
- 524Longest Word in Dictionary through DeletingWatch
- 527Word AbbreviationLocked
- 535Encode and Decode TinyURLWatch
- 536Construct Binary Tree from StringLocked
- 537Complex Number MultiplicationWatch
- 539Minimum Time DifferenceWatch
- 541Reverse String IIWatch
- 544Output Contest MatchesLocked
- 551Student Attendance Record IWatch
- 555Split Concatenated StringsLocked
- 556Next Greater Element IIIWatch
- 557Reverse Words in a String IIIWatch
- 564Find the Closest PalindromeWatch
- 567Permutation in StringWatch
- 572Subtree of Another TreeWatch
- 583Delete Operation for Two StringsWatch
- 588Design In-Memory File SystemLocked
- 591Tag ValidatorWatch
- 592Fraction Addition and SubtractionWatch
- 599Minimum Index Sum of Two ListsWatch
- 604Design Compressed String IteratorLocked
- 606Construct String from Binary TreeWatch
- 609Find Duplicate File in SystemWatch
- 616Add Bold Tag in StringLocked
- 631Design Excel Sum FormulaLocked
- 635Design Log Storage SystemLocked
- 639Decode Ways IIWatch
- 640Solve the EquationWatch
- 642Design Search Autocomplete SystemLocked
- 647Palindromic SubstringsWatch
- 648Replace WordsWatch
- 649Dota2 SenateWatch
- 657Robot Return to OriginWatch
- 664Strange PrinterWatch
- 676Implement Magic DictionaryWatch
- 677Map Sum PairsWatch
- 678Valid Parenthesis StringWatch
- 680Valid Palindrome IIWatch
- 681Next Closest TimeLocked
- 686Repeated String MatchWatch
- 691Stickers to Spell WordWatch
- 692Top K Frequent WordsWatch
- 696Count Binary SubstringsWatch
- 709To Lower CaseWatch
- 712Minimum ASCII Delete Sum for Two StringsWatch
- 720Longest Word in DictionaryWatch
- 721Accounts MergeWatch
- 722Remove CommentsWatch
- 726Number of AtomsWatch
- 727Minimum Window SubsequenceLocked
- 730Count Different Palindromic SubsequencesWatch
- 734Sentence SimilarityLocked
- 736Parse Lisp ExpressionWatch
- 737Sentence Similarity IILocked
- 745Prefix and Suffix SearchWatch
- 748Shortest Completing WordWatch
- 751IP to CIDRLocked
- 752Open the LockWatch
- 753Cracking the SafeWatch
- 756Pyramid Transition MatrixWatch
- 758Bold Words in StringLocked
- 761Special Binary StringWatch
- 763Partition LabelsWatch
- 767Reorganize StringWatch
- 770Basic Calculator IVWatch
- 771Jewels and StonesWatch
- 772Basic Calculator IIILocked
- 777Swap Adjacent in LR StringWatch
- 784Letter Case PermutationWatch
- 791Custom Sort StringWatch
- 792Number of Matching SubsequencesWatch
- 796Rotate StringWatch
- 800Similar RGB ColorLocked
- 804Unique Morse Code WordsWatch
- 806Number of Lines To Write StringWatch
- 809Expressive WordsWatch
- 811Subdomain Visit CountWatch
- 816Ambiguous CoordinatesWatch
- 819Most Common WordWatch
- 820Short Encoding of WordsWatch
- 821Shortest Distance to a CharacterWatch
- 824Goat LatinWatch
- 828Count Unique Characters of All Substrings of a Given StringWatch
- 830Positions of Large GroupsWatch
- 831Masking Personal InformationWatch
- 833Find And Replace in StringWatch
- 838Push DominoesWatch
- 839Similar String GroupsWatch
- 842Split Array into Fibonacci SequenceWatch
- 843Guess the WordWatch
- 844Backspace String CompareWatch
- 848Shifting LettersWatch
- 854K-Similar StringsWatch
- 856Score of ParenthesesWatch
- 859Buddy StringsWatch
- 880Decoded String at IndexWatch
- 884Uncommon Words from Two SentencesWatch
- 890Find and Replace PatternWatch
- 893Groups of Special-Equivalent StringsWatch
- 899Orderly QueueWatch
- 902Numbers At Most N Given Digit SetWatch
- 903Valid Permutations for DI SequenceWatch
- 906Super PalindromesWatch
- 916Word SubsetsWatch
- 917Reverse Only LettersWatch
- 921Minimum Add to Make Parentheses ValidWatch
- 925Long Pressed NameWatch
- 926Flip String to Monotone IncreasingWatch
- 929Unique Email AddressesWatch
- 936Stamping The SequenceWatch
- 937Reorder Data in Log FilesWatch
- 940Distinct Subsequences IIWatch
- 942DI String MatchWatch
- 943Find the Shortest SuperstringWatch
- 944Delete Columns to Make SortedWatch
- 949Largest Time for Given DigitsWatch
- 953Verifying an Alien DictionaryWatch
- 955Delete Columns to Make Sorted IIWatch
- 960Delete Columns to Make Sorted IIIWatch
- 966Vowel SpellcheckerWatch
- 972Equal Rational NumbersWatch
- 981Time Based Key-Value StoreWatch
- 984String Without AAA or BBBWatch
- 988Smallest String Starting From LeafWatch
- 990Satisfiability of Equality EquationsWatch
- 1002Find Common CharactersWatch
- 1003Check If Word Is Valid After SubstitutionsWatch
- 1016Binary String With Substrings Representing 1 To NWatch
- 1021Remove Outermost ParenthesesWatch
- 1023Camelcase MatchingWatch
- 1028Recover a Tree From Preorder TraversalWatch
- 1032Stream of CharactersWatch
- 1041Robot Bounded In CircleWatch
- 1044Longest Duplicate SubstringWatch
- 1047Remove All Adjacent Duplicates In StringWatch
- 1048Longest String ChainWatch
- 1055Shortest Way to Form StringLocked
- 1058Minimize Rounding Error to Meet TargetLocked
- 1061Lexicographically Smallest Equivalent StringWatch
- 1062Longest Repeating SubstringLocked
- 1065Index Pairs of a StringLocked
- 1071Greatest Common Divisor of StringsWatch
- 1078Occurrences After BigramWatch
- 1079Letter Tile PossibilitiesWatch
- 1081Smallest Subsequence of Distinct CharactersWatch
- 1087Brace ExpansionLocked
- 1092Shortest Common Supersequence Watch
- 1096Brace Expansion IIWatch
- 1100Find K-Length Substrings With No Repeated CharactersLocked
- 1106Parsing A Boolean ExpressionWatch
- 1108Defanging an IP AddressWatch
- 1111Maximum Nesting Depth of Two Valid Parentheses StringsWatch
- 1119Remove Vowels from a StringLocked
- 1138Alphabet Board PathWatch
- 1143Longest Common SubsequenceWatch
- 1147Longest Chunked Palindrome DecompositionWatch
- 1152Analyze User Website Visit PatternLocked
- 1153String Transforms Into Another StringLocked
- 1154Day of the YearWatch
- 1156Swap For Longest Repeated Character SubstringWatch
- 1160Find Words That Can Be Formed by CharactersWatch
- 1163Last Substring in Lexicographical OrderWatch
- 1165Single-Row KeyboardLocked
- 1166Design File SystemLocked
- 1169Invalid TransactionsWatch
- 1170Compare Strings by Frequency of the Smallest CharacterWatch
- 1177Can Make Palindrome from SubstringWatch
- 1178Number of Valid Words for Each PuzzleWatch
- 1180Count Substrings with Only One Distinct LetterLocked
- 1181Before and After PuzzleLocked
- 1189Maximum Number of BalloonsWatch
- 1190Reverse Substrings Between Each Pair of ParenthesesWatch
- 1202Smallest String With SwapsWatch
- 1208Get Equal Substrings Within BudgetWatch
- 1209Remove All Adjacent Duplicates in String IIWatch
- 1216Valid Palindrome IIILocked
- 1221Split a String in Balanced StringsWatch
- 1233Remove Sub-Folders from the FilesystemWatch
- 1234Replace the Substring for Balanced StringWatch
- 1236Web CrawlerLocked
- 1239Maximum Length of a Concatenated String with Unique CharactersWatch
- 1247Minimum Swaps to Make Strings EqualWatch
- 1249Minimum Remove to Make Valid ParenthesesWatch
- 1255Maximum Score Words Formed by LettersWatch
- 1256Encode NumberLocked
- 1257Smallest Common RegionLocked
- 1258Synonymous SentencesLocked
- 1268Search Suggestions SystemWatch
- 1271HexspeakLocked
- 1278Palindrome Partitioning IIIWatch
- 1286Iterator for CombinationWatch
- 1297Maximum Number of Occurrences of a SubstringWatch
- 1307Verbal Arithmetic PuzzleWatch
- 1309Decrypt String from Alphabet to Integer MappingWatch
- 1312Minimum Insertion Steps to Make a String PalindromeWatch
- 1316Distinct Echo SubstringsWatch
- 1320Minimum Distance to Type a Word Using Two FingersWatch
- 1324Print Words VerticallyWatch
- 1328Break a PalindromeWatch
- 1332Remove Palindromic SubsequencesWatch
- 1347Minimum Number of Steps to Make Two Strings AnagramWatch
- 1348Tweet Counts Per FrequencyWatch
- 1358Number of Substrings Containing All Three CharactersWatch
- 1360Number of Days Between Two DatesWatch
- 1366Rank Teams by VotesWatch
- 1370Increasing Decreasing StringWatch
- 1371Find the Longest Substring Containing Vowels in Even CountsWatch
- 1374Generate a String With Characters That Have Odd CountsWatch
- 1392Longest Happy PrefixWatch
- 1396Design Underground SystemWatch
- 1397Find All Good StringsWatch
- 1400Construct K Palindrome StringsWatch
- 1404Number of Steps to Reduce a Number in Binary Representation to OneWatch
- 1405Longest Happy StringWatch
- 1408String Matching in an ArrayWatch
- 1410HTML Entity ParserWatch
- 1415The k-th Lexicographical String of All Happy Strings of Length nWatch
- 1416Restore The ArrayWatch
- 1417Reformat The StringWatch
- 1418Display Table of Food Orders in a RestaurantWatch
- 1419Minimum Number of Frogs CroakingWatch
- 1422Maximum Score After Splitting a StringWatch
- 1427Perform String ShiftsLocked
- 1433Check If a String Can Break Another StringWatch
- 1436Destination CityWatch
- 1446Consecutive CharactersWatch
- 1447Simplified FractionsWatch
- 1451Rearrange Words in a SentenceWatch
- 1452People Whose List of Favorite Companies Is Not a Subset of Another ListWatch
- 1455Check If a Word Occurs As a Prefix of Any Word in a SentenceWatch
- 1456Maximum Number of Vowels in a Substring of Given LengthWatch
- 1461Check If a String Contains All Binary Codes of Size KWatch
- 1487Making File Names UniqueWatch
- 1496Path CrossingWatch
- 1505Minimum Possible Integer After at Most K Adjacent Swaps On DigitsWatch
- 1507Reformat DateWatch
- 1513Number of Substrings With Only 1sWatch
- 1520Maximum Number of Non-Overlapping SubstringsWatch
- 1525Number of Good Ways to Split a StringWatch
- 1528Shuffle StringWatch
- 1529Minimum Suffix FlipsWatch
- 1531String Compression IIWatch
- 1540Can Convert String in K MovesWatch
- 1541Minimum Insertions to Balance a Parentheses StringWatch
- 1542Find Longest Awesome SubstringWatch
- 1544Make The String GreatWatch
- 1545Find Kth Bit in Nth Binary StringWatch
- 1548The Most Similar Path in a GraphLocked
- 1554Strings Differ by One CharacterLocked
- 1556Thousand SeparatorWatch
- 1573Number of Ways to Split a StringWatch
- 1576Replace All ?'s to Avoid Consecutive Repeating CharactersWatch
- 1578Minimum Time to Make Rope ColorfulWatch
- 1585Check If String Is Transformable With Substring Sort OperationsWatch
- 1592Rearrange Spaces Between WordsWatch
- 1593Split a String Into the Max Number of Unique SubstringsWatch
- 1597Build Binary Expression Tree From Infix ExpressionLocked
- 1598Crawler Log FolderWatch
- 1604Alert Using Same Key-Card Three or More Times in a One Hour PeriodWatch
- 1614Maximum Nesting Depth of the ParenthesesWatch
- 1616Split Two Strings to Make PalindromeWatch
- 1618Maximum Font to Fit a Sentence in a ScreenLocked
- 1624Largest Substring Between Two Equal CharactersWatch
- 1625Lexicographically Smallest String After Applying OperationsWatch
- 1629Slowest KeyWatch
- 1638Count Substrings That Differ by One CharacterWatch
- 1639Number of Ways to Form a Target String Given a DictionaryWatch
- 1647Minimum Deletions to Make Character Frequencies UniqueWatch
- 1653Minimum Deletions to Make String BalancedWatch
- 1657Determine if Two Strings Are CloseWatch
- 1662Check If Two String Arrays are EquivalentWatch
- 1663Smallest String With A Given Numeric ValueWatch
- 1668Maximum Repeating SubstringWatch
- 1678Goal Parser InterpretationWatch
- 1682Longest Palindromic Subsequence IILocked
- 1684Count the Number of Consistent StringsWatch
- 1689Partitioning Into Minimum Number Of Deci-Binary NumbersWatch
- 1694Reformat Phone NumberWatch
- 1698Number of Distinct Substrings in a StringLocked
- 1702Maximum Binary String After ChangeWatch
- 1704Determine if String Halves Are AlikeWatch
- 1717Maximum Score From Removing SubstringsWatch
- 1736Latest Time by Replacing Hidden DigitsWatch
- 1737Change Minimum Characters to Satisfy One of Three ConditionsWatch
- 1745Palindrome Partitioning IVWatch
- 1750Minimum Length of String After Deleting Similar EndsWatch
- 1754Largest Merge Of Two StringsWatch
- 1758Minimum Changes To Make Alternating Binary StringWatch
- 1759Count Number of Homogenous SubstringsWatch
- 1763Longest Nice SubstringWatch
- 1764Form Array by Concatenating Subarrays of Another ArrayWatch
- 1768Merge Strings AlternatelyWatch
- 1769Minimum Number of Operations to Move All Balls to Each BoxWatch
- 1771Maximize Palindrome Length From SubsequencesWatch
- 1772Sort Features by PopularityLocked
- 1773Count Items Matching a RuleWatch
- 1781Sum of Beauty of All SubstringsWatch
- 1784Check if Binary String Has at Most One Segment of OnesWatch
- 1790Check if One String Swap Can Make Strings EqualWatch
- 1794Count Pairs of Equal Substrings With Minimum DifferenceLocked
- 1796Second Largest Digit in a StringWatch
- 1804Implement Trie II (Prefix Tree)Locked
- 1805Number of Different Integers in a StringWatch
- 1807Evaluate the Bracket Pairs of a StringWatch
- 1812Determine Color of a Chessboard SquareWatch
- 1813Sentence Similarity IIIWatch
- 1816Truncate SentenceWatch
- 1830Minimum Number of Operations to Make String SortedWatch
- 1832Check if the Sentence Is PangramWatch
- 1839Longest Substring Of All Vowels in OrderWatch
- 1842Next Palindrome Using Same DigitsLocked
- 1844Replace All Digits with CharactersWatch
- 1849Splitting a String Into Descending Consecutive ValuesWatch
- 1850Minimum Adjacent Swaps to Reach the Kth Smallest NumberWatch
- 1857Largest Color Value in a Directed GraphWatch
- 1858Longest Word With All PrefixesLocked
- 1859Sorting the SentenceWatch
- 1864Minimum Number of Swaps to Make the Binary String AlternatingWatch
- 1869Longer Contiguous Segments of Ones than ZerosWatch
- 1871Jump Game VIIWatch
- 1876Substrings of Size Three with Distinct CharactersWatch
- 1880Check if Word Equals Summation of Two WordsWatch
- 1881Maximum Value after InsertionWatch
- 1888Minimum Number of Flips to Make the Binary String AlternatingWatch
- 1896Minimum Cost to Change the Final Value of ExpressionWatch
- 1897Redistribute Characters to Make All Strings EqualWatch
- 1898Maximum Number of Removable CharactersWatch
- 1903Largest Odd Number in StringWatch
- 1904The Number of Full Rounds You Have PlayedWatch
- 1910Remove All Occurrences of a SubstringWatch
- 1915Number of Wonderful SubstringsWatch
- 1923Longest Common SubpathWatch
- 1927Sum GameWatch
- 1930Unique Length-3 Palindromic SubsequencesWatch
- 1933Check if String Is Decomposable Into Value-Equal SubstringsLocked
- 1935Maximum Number of Words You Can TypeWatch
- 1941Check if All Characters Have Equal Number of OccurrencesWatch
- 1945Sum of Digits of String After ConvertWatch
- 1946Largest Number After Mutating SubstringWatch
- 1948Delete Duplicate Folders in SystemWatch
- 1957Delete Characters to Make Fancy StringWatch
- 1960Maximum Product of the Length of Two Palindromic SubstringsWatch
- 1961Check If String Is a Prefix of ArrayWatch
- 1963Minimum Number of Swaps to Make the String BalancedWatch
- 1967Number of Strings That Appear as Substrings in WordWatch
- 1974Minimum Time to Type Word Using Special TypewriterWatch
- 1977Number of Ways to Separate NumbersWatch
- 1980Find Unique Binary StringWatch
- 1985Find the Kth Largest Integer in the ArrayWatch
- 1987Number of Unique Good SubsequencesWatch
- 2000Reverse Prefix of WordWatch
- 2002Maximum Product of the Length of Two Palindromic SubsequencesWatch
- 2011Final Value of Variable After Performing OperationsWatch
- 2014Longest Subsequence Repeated k TimesWatch
- 2019The Score of Students Solving Math ExpressionWatch
- 2023Number of Pairs of Strings With Concatenation Equal to TargetWatch
- 2024Maximize the Confusion of an ExamWatch
- 2027Minimum Moves to Convert StringWatch
- 2030Smallest K-Length Subsequence With Occurrences of a LetterWatch
- 2038Remove Colored Pieces if Both Neighbors are the Same ColorWatch
- 2042Check if Numbers Are Ascending in a SentenceWatch
- 2047Number of Valid Words in a SentenceWatch
- 2052Minimum Cost to Separate Sentence Into RowsLocked
- 2053Kth Distinct String in an ArrayWatch
- 2055Plates Between CandlesWatch
- 2056Number of Valid Move Combinations On ChessboardWatch
- 2060Check if an Original String Exists Given Two Encoded StringsWatch
- 2062Count Vowel Substrings of a StringWatch
- 2063Vowels of All SubstringsWatch
- 2067Number of Equal Count SubstringsLocked
- 2068Check Whether Two Strings are Almost EquivalentWatch
- 2075Decode the Slanted CiphertextWatch
- 2083Substrings That Begin and End With the Same LetterLocked
- 2085Count Common Words With One OccurrenceWatch
- 2086Minimum Number of Food Buckets to Feed the HamstersWatch
- 2096Step-By-Step Directions From a Binary Tree Node to AnotherWatch
- 2103Rings and RodsWatch
- 2108Find First Palindromic String in the ArrayWatch
- 2109Adding Spaces to a StringWatch
- 2114Maximum Number of Words Found in SentencesWatch
- 2115Find All Possible Recipes from Given SuppliesWatch
- 2116Check if a Parentheses String Can Be ValidWatch
- 2120Execution of All Suffix Instructions Staying in a GridWatch
- 2124Check if All A's Appears Before All B'sWatch
- 2125Number of Laser Beams in a BankWatch
- 2129Capitalize the TitleWatch
- 2131Longest Palindrome by Concatenating Two Letter WordsWatch
- 2135Count Words Obtained After Adding a LetterWatch
- 2138Divide a String Into Groups of Size kWatch
- 2147Number of Ways to Divide a Long CorridorWatch
- 2156Find Substring With Given Hash ValueWatch
- 2157Groups of StringsWatch
- 2166Design BitsetWatch
- 2167Minimum Time to Remove All Cars Containing Illegal GoodsWatch
- 2168Unique Substrings With Equal Digit FrequencyLocked
- 2182Construct String With Repeat LimitWatch
- 2185Counting Words With a Given PrefixWatch
- 2186Minimum Number of Steps to Make Two Strings Anagram IIWatch
- 2193Minimum Number of Moves to Make PalindromeWatch
- 2194Cells in a Range on an Excel SheetWatch
- 2207Maximize Number of Subsequences in a StringWatch
- 2209Minimum White Tiles After Covering With CarpetsWatch
- 2211Count Collisions on a RoadWatch
- 2213Longest Substring of One Repeating CharacterWatch
- 2222Number of Ways to Select BuildingsWatch
- 2223Sum of Scores of Built StringsWatch
- 2224Minimum Number of Operations to Convert TimeWatch
- 2227Encrypt and Decrypt StringsWatch
- 2232Minimize Result by Adding Parentheses to ExpressionWatch
- 2243Calculate Digit Sum of a StringWatch
- 2246Longest Path With Different Adjacent CharactersWatch
- 2255Count Prefixes of a Given StringWatch
- 2259Remove Digit From Number to Maximize ResultWatch
- 2262Total Appeal of A StringWatch
- 2264Largest 3-Same-Digit Number in StringWatch
- 2266Count Number of TextsWatch
- 2268Minimum Number of KeypressesLocked
- 2269Find the K-Beauty of a NumberWatch
- 2272Substring With Largest VarianceWatch
- 2273Find Resultant Array After Removing AnagramsWatch
- 2278Percentage of Letter in StringWatch
- 2283Check if Number Has Equal Digit Count and Digit ValueWatch
- 2284Sender With Largest Word CountWatch
- 2287Rearrange Characters to Make Target StringWatch
- 2288Apply Discount to PricesWatch
- 2296Design a Text EditorWatch
- 2299Strong Password Checker IIWatch
- 2301Match Substring After ReplacementWatch
- 2306Naming a CompanyWatch
- 2307Check for Contradictions in EquationsLocked
- 2309Greatest English Letter in Upper and Lower CaseWatch
- 2311Longest Binary Subsequence Less Than or Equal to KWatch
- 2315Count AsterisksWatch
- 2325Decode the MessageWatch
- 2330Valid Palindrome IVLocked
- 2337Move Pieces to Obtain a StringWatch
- 2343Query Kth Smallest Trimmed NumberWatch
- 2351First Letter to Appear TwiceWatch
- 2353Design a Food Rating SystemWatch
- 2370Longest Ideal SubsequenceWatch
- 2375Construct Smallest Number From DI StringWatch
- 2379Minimum Recolors to Get K Consecutive Black BlocksWatch
- 2380Time Needed to Rearrange a Binary StringWatch
- 2381Shifting Letters IIWatch
- 2384Largest Palindromic NumberWatch
- 2390Removing Stars From a StringWatch
- 2391Minimum Amount of Time to Collect GarbageWatch
- 2399Check Distances Between Same LettersWatch
- 2405Optimal Partition of StringWatch
- 2408Design SQLWatch
- 2409Count Days Spent TogetherWatch
- 2414Length of the Longest Alphabetical Continuous SubstringWatch
- 2416Sum of Prefix Scores of StringsWatch
- 2418Sort the PeopleWatch
- 2423Remove Letter To Equalize FrequencyWatch
- 2430Maximum Deletions on a StringWatch
- 2434Using a Robot to Print the Lexicographically Smallest StringWatch
- 2437Number of Valid Clock TimesWatch
- 2446Determine if Two Events Have ConflictWatch
- 2450Number of Distinct Binary Strings After Applying OperationsLocked
- 2451Odd String DifferenceWatch
- 2452Words Within Two Edits of DictionaryWatch
- 2456Most Popular Video CreatorWatch
- 2468Split Message Based on LimitWatch
- 2472Maximum Number of Non-overlapping Palindrome SubstringsWatch
- 2478Number of Beautiful PartitionsWatch
- 2483Minimum Penalty for a ShopWatch
- 2484Count Palindromic SubsequencesWatch
- 2486Append Characters to String to Make SubsequenceWatch
- 2489Number of Substrings With Fixed RatioLocked
- 2490Circular SentenceWatch
- 2496Maximum Value of a String in an ArrayWatch
- 2506Count Pairs Of Similar StringsWatch
- 2512Reward Top K StudentsWatch
- 2514Count AnagramsWatch
- 2515Shortest Distance to Target String in a Circular ArrayWatch
- 2516Take K of Each Character From Left and RightWatch
- 2522Partition String Into Substrings With Values at Most KWatch
- 2531Make Number of Distinct Characters EqualWatch
- 2539Count the Number of Good SubsequencesLocked
- 2546Apply Bitwise Operations to Make Strings EqualWatch
- 2559Count Vowel Strings in RangesWatch
- 2564Substring XOR QueriesWatch
- 2565Subsequence With the Minimum ScoreWatch
- 2573Find the String with LCPWatch
- 2575Find the Divisibility Array of a StringWatch
- 2586Count the Number of Vowel Strings in RangeWatch
- 2590Design a Todo ListLocked
- 2606Find the Substring With Maximum CostWatch
- 2609Find the Longest Balanced Substring of a Binary StringWatch
- 2645Minimum Additions to Make Valid StringWatch
- 2663Lexicographically Smallest Beautiful StringWatch
- 2678Number of Senior CitizensWatch
- 2696Minimum String Length After Removing SubstringsWatch
- 2697Lexicographically Smallest PalindromeWatch
- 2707Extra Characters in a StringWatch
- 2710Remove Trailing Zeros From a StringWatch
- 2712Minimum Cost to Make All Characters EqualWatch
- 2716Minimize String LengthWatch
- 2719Count of IntegersWatch
- 2730Find the Longest Semi-Repetitive SubstringWatch
- 2734Lexicographically Smallest String After Substring OperationWatch
- 2743Count Substrings Without Repeating CharacterLocked
- 2744Find Maximum Number of String PairsWatch
- 2746Decremental String ConcatenationWatch
- 2767Partition String Into Minimum Beautiful SubstringsWatch
- 2781Length of the Longest Valid SubstringWatch
- 2785Sort Vowels in a StringWatch
- 2788Split Strings by SeparatorWatch
- 2800Shortest String That Contains Three StringsWatch
- 2801Count Stepping Numbers in RangeWatch
- 2802Find The K-th Lucky NumberLocked
- 2810Faulty KeyboardWatch
- 2825Make String a Subsequence Using Cyclic IncrementsWatch
- 2828Check if a String Is an Acronym of WordsWatch
- 2833Furthest Point From OriginWatch
- 2839Check if Strings Can be Made Equal With Operations IWatch
- 2840Check if Strings Can be Made Equal With Operations IIWatch
- 2842Count K-Subsequences of a String With Maximum BeautyWatch
- 2844Minimum Operations to Make a Special NumberWatch
- 2851String TransformationWatch
- 2864Maximum Odd Binary NumberWatch
- 2868The Wording GameLocked
- 2896Apply Operations to Make Two Strings EqualWatch
- 2900Longest Unequal Adjacent Groups Subsequence IWatch
- 2901Longest Unequal Adjacent Groups Subsequence IIWatch
- 2904Shortest and Lexicographically Smallest Beautiful StringWatch
- 2911Minimum Changes to Make K Semi-palindromesWatch
- 2914Minimum Number of Changes to Make Binary String BeautifulWatch
- 2933High-Access EmployeesWatch
- 2937Make Three Strings EqualWatch
- 2938Separate Black and White BallsWatch
- 2942Find Words Containing CharacterWatch
- 2947Count Beautiful Substrings IWatch
- 2949Count Beautiful Substrings IIWatch
- 2950Number of Divisible SubstringsLocked
- 2953Count Complete SubstringsWatch
- 2955Number of Same-End SubstringsLocked
- 2957Remove Adjacent Almost-Equal CharactersWatch
- 2976Minimum Cost to Convert String IWatch
- 2977Minimum Cost to Convert String IIWatch
- 2981Find Longest Special Substring That Occurs Thrice IWatch
- 2982Find Longest Special Substring That Occurs Thrice IIWatch
- 2983Palindrome Rearrangement QueriesWatch
- 2999Count the Number of Powerful IntegersWatch
- 3003Maximize the Number of Partitions After OperationsWatch
- 3006Find Beautiful Indices in the Given Array IWatch
- 3008Find Beautiful Indices in the Given Array IIWatch
- 3014Minimum Number of Pushes to Type Word IWatch
- 3016Minimum Number of Pushes to Type Word IIWatch
- 3019Number of Changing KeysWatch
- 3023Find Pattern in Infinite Stream ILocked
- 3029Minimum Time to Revert Word to Initial State IWatch
- 3031Minimum Time to Revert Word to Initial State IIWatch
- 3034Number of Subarrays That Match a Pattern IWatch
- 3035Maximum Palindromes After OperationsWatch
- 3036Number of Subarrays That Match a Pattern IIWatch
- 3037Find Pattern in Infinite Stream IILocked
- 3042Count Prefix and Suffix Pairs IWatch
- 3043Find the Length of the Longest Common PrefixWatch
- 3045Count Prefix and Suffix Pairs IIWatch
- 3076Shortest Uncommon Substring in an ArrayWatch
- 3078Match Alphanumerical Pattern in Matrix ILocked
- 3081Replace Question Marks in String to Minimize Its ValueWatch
- 3083Existence of a Substring in a String and Its ReverseWatch
- 3084Count Substrings Starting and Ending with Given CharacterWatch
- 3085Minimum Deletions to Make String K-SpecialWatch
- 3088Make String Anti-palindromeLocked
- 3090Maximum Length Substring With Two OccurrencesWatch
- 3093Longest Common Suffix QueriesWatch
- 3104Find Longest Self-Contained SubstringLocked
- 3106Lexicographically Smallest String After Operations With ConstraintWatch
- 3110Score of a StringWatch
- 3114Latest Time You Can Obtain After Replacing CharactersWatch
- 3119Maximum Number of Potholes That Can Be FixedLocked
- 3120Count the Number of Special Characters IWatch
- 3121Count the Number of Special Characters IIWatch
- 3125Maximum Number That Makes Result of Bitwise AND ZeroLocked
- 3135Equalize Strings by Adding or Removing Characters at EndsLocked
- 3136Valid WordWatch
- 3137Minimum Number of Operations to Make Word K-PeriodicWatch
- 3138Minimum Length of Anagram ConcatenationWatch
- 3143Maximum Points Inside the SquareWatch
- 3144Minimum Substring Partition of Equal Character FrequencyWatch
- 3146Permutation Difference between Two StringsWatch
- 3163String Compression IIIWatch
- 3167Better Compression of StringLocked
- 3168Minimum Number of Chairs in a Waiting RoomWatch
- 3170Lexicographically Minimum String After Removing StarsWatch
- 3174Clear DigitsWatch
- 3210Find the Encrypted StringWatch
- 3211Generate Binary Strings Without Adjacent ZerosWatch
- 3213Construct String with Minimum CostWatch
- 3216Lexicographically Smallest String After a SwapWatch
- 3223Minimum Length of String After OperationsWatch
- 3227Vowels Game in a StringWatch
- 3228Maximum Number of Operations to Move Ones to the EndWatch
- 3234Count the Number of Substrings With Dominant OnesWatch
- 3248Snake in MatrixWatch
- 3258Count Substrings That Satisfy K-Constraint IWatch
- 3260Find the Largest Palindrome Divisible by KWatch
- 3261Count Substrings That Satisfy K-Constraint IIWatch
- 3271Hash Divided StringWatch
- 3274Check if Two Chessboard Squares Have the Same ColorWatch
- 3279Maximum Total Area Occupied by PistonsLocked
- 3280Convert Date to BinaryWatch
- 3291Minimum Number of Valid Strings to Form Target IWatch
- 3292Minimum Number of Valid Strings to Form Target IIWatch
- 3295Report Spam MessageWatch
- 3297Count Substrings That Can Be Rearranged to Contain a String IWatch
- 3298Count Substrings That Can Be Rearranged to Contain a String IIWatch
- 3302Find the Lexicographically Smallest Valid SequenceWatch
- 3303Find the Occurrence of First Almost Equal SubstringWatch
- 3305Count of Substrings Containing Every Vowel and K Consonants IWatch
- 3306Count of Substrings Containing Every Vowel and K Consonants IIWatch
- 3316Find Maximum Removals From Source StringWatch
- 3320Count The Number of Winning SequencesWatch
- 3324Find the Sequence of Strings Appeared on the ScreenWatch
- 3325Count Substrings With K-Frequency Characters IWatch
- 3327Check if DFS Strings Are PalindromesWatch
- 3329Count Substrings With K-Frequency Characters IILocked
- 3330Find the Original Typed String IWatch
- 3331Find Subtree Sizes After ChangesWatch
- 3333Find the Original Typed String IIWatch
- 3335Total Characters in String After Transformations IWatch
- 3337Total Characters in String After Transformations IIWatch
- 3340Check Balanced StringWatch
- 3343Count Number of Balanced PermutationsWatch
- 3348Smallest Divisible Digit Product IIWatch
- 3352Count K-Reducible Numbers Less Than NWatch
- 3361Shift Distance Between Two StringsWatch
- 3365Rearrange K Substrings to Form Target StringWatch
- 3387Maximize Amount After Two Days of ConversionsWatch
- 3389Minimum Operations to Make Character Frequencies EqualWatch
- 3399Smallest Substring With Identical Characters IIWatch
- 3403Find the Lexicographically Largest String From the Box IWatch
- 3406Find the Lexicographically Largest String From the Box IILocked
- 3407Substring Matching PatternWatch
- 3412Find Mirror Score of a StringWatch
- 3435Frequencies of Shortest SupersequencesWatch
- 3438Find Valid Pair of Adjacent Digits in StringWatch
- 3441Minimum Cost Good CaptionWatch
- 3442Maximum Difference Between Even and Odd Frequency IWatch
- 3443Maximum Manhattan Distance After K ChangesWatch
- 3445Maximum Difference Between Even and Odd Frequency IIWatch
- 3448Count Substrings Divisible By Last DigitWatch
- 3455Shortest Matching SubstringWatch
- 3456Find Special Substring of Length KWatch
- 3458Select K Disjoint Special SubstringsWatch
- 3460Longest Common Prefix After at Most One RemovalLocked
- 3461Check If Digits Are Equal in String After Operations IWatch
- 3463Check If Digits Are Equal in String After Operations IIWatch
- 3472Longest Palindromic Subsequence After at Most K OperationsWatch
- 3474Lexicographically Smallest Generated StringWatch
- 3481Apply SubstitutionsLocked
- 3484Design SpreadsheetWatch
- 3485Longest Common Prefix of K Strings After RemovalWatch
- 3491Phone Number PrefixLocked
- 3498Reverse Degree of a StringWatch
- 3499Maximize Active Section with Trade IWatch
- 3501Maximize Active Section with Trade IIWatch
- 3503Longest Palindrome After Substring Concatenation IWatch
- 3504Longest Palindrome After Substring Concatenation IIWatch
- 3517Smallest Palindromic Rearrangement IWatch
- 3518Smallest Palindromic Rearrangement IIWatch
- 3519Count Numbers with Non-Decreasing Digits Watch
- 3522Calculate Score After Performing InstructionsWatch
- 3527Find the Most Common ResponseWatch
- 3529Count Cells in Overlapping Horizontal and Vertical SubstringsWatch
- 3541Find Most Frequent Vowel and ConsonantWatch
- 3545Minimum Deletions for At Most K Distinct CharactersWatch
- 3556Sum of Largest Prime SubstringsWatch
- 3557Find Maximum Number of Non Intersecting SubstringsWatch
- 3561Resulting String After Adjacent RemovalsWatch
- 3563Lexicographically Smallest String After Adjacent RemovalsWatch
- 3571Find the Shortest Superstring IILocked
- 3579Minimum Steps to Convert String with OperationsWatch
- 3581Count Odd Letters from NumberLocked
- 3582Generate Tag for Video CaptionWatch
- 3597Partition String Watch
- 3598Longest Common Prefix Between Adjacent Strings After RemovalsWatch
- 3602Hexadecimal and Hexatrigesimal ConversionWatch
- 3606Coupon Code ValidatorWatch
- 3612Process String with Special Operations IWatch
- 3614Process String with Special Operations IIWatch
- 3615Longest Palindromic Path in GraphWatch
- 3628Maximum Number of Subsequences After One InsertingWatch
- 3662Filter Characters by FrequencyLocked
- 3664Two-Letter Card GameWatch
- 3666Minimum Operations to Equalize Binary StringWatch
- 3675Minimum Operations to Transform StringWatch
- 3692Majority Frequency CharactersWatch
- 3694Distinct Points Reachable After Substring RemovalWatch
- 3696Maximum Distance Between Unequal Words in Array ILocked
- 3703Remove K-Balanced SubstringsWatch
- 3706Maximum Distance Between Unequal Words in Array IILocked
- 3707Equal Score SubstringsWatch
- 3713Longest Balanced Substring IWatch
- 3714Longest Balanced Substring IIWatch
- 3720Lexicographically Smallest Permutation Greater Than TargetWatch
- 3734Lexicographically Smallest Palindromic Permutation Greater Than TargetWatch
- 3735Lexicographically Smallest String After Reverse IILocked
- 3744Find Kth Character in Expanded StringLocked
- 3746Minimum String Length After Balanced RemovalsWatch
- 3749Evaluate Valid ExpressionsLocked
- 3750Minimum Number of Flips to Reverse Binary StringWatch
- 3756Concatenate Non-Zero Digits and Multiply by Sum IIWatch
- 3758Convert Number Words to DigitsLocked
- 3760Maximum Substrings With Distinct StartWatch
- 3773Maximum Number of Equal Length RunsLocked
- 3775Reverse Words With Same Vowel CountWatch
- 3777Minimum Deletions to Make Alternating SubstringWatch
- 3781Maximum Score After Binary SwapsWatch
- 3784Minimum Deletion Cost to Make All Characters EqualWatch
- 3794Reverse String PrefixWatch
- 3798Largest Even NumberWatch
- 3799Word Squares IIWatch
- 3800Minimum Cost to Make Two Binary Strings EqualWatch
- 3803Count Residue PrefixesWatch
- 3805Count Caesar Cipher PairsWatch
- 3813Vowel-Consonant ScoreWatch
- 3816Lexicographically Smallest String After Deleting Duplicate CharactersWatch
- 3817Good Indices in a Digit StringLocked
- 3823Reverse Letters Then Special Characters in a StringWatch
- 3838Weighted Word MappingWatch
- 3839Number of Prefix Connected GroupsWatch
- 3841Palindromic Path Queries in a TreeWatch
- 3844Longest Almost-Palindromic SubstringWatch
- 3846Total Distance to Type a String Using One FingerLocked
- 3849Maximum Bitwise XOR After RearrangementWatch
- 3853Merge Close CharactersWatch
- 3856Trim Trailing VowelsWatch
- 3860Unique Email GroupsLocked
- 3863Minimum Operations to Sort a StringWatch
- 3864Minimum Cost to Partition a Binary StringWatch
- 3884First Matching Character From Both EndsWatch
- 3889Mirror Frequency DistanceWatch
- 3894Traffic Signal ColorWatch
- 3900Longest Balanced Substring After One SwapWatch
- 3913Sort Vowels by FrequencyWatch
- 3921Score ValidatorWatch
- 3922Minimum Flips to Make Binary String CoherentWatch
- 3926Count Valid Word OccurrencesWatch
- 3931Check Adjacent Digit DifferencesWatch
- 3934Smallest Unique SubarrayWatch
- 3941Password StrengthWatch
- 3952Maximum Total Value of Covered IndicesWatch
- 3955Valid Binary Strings With Cost LimitWatch
- 3968Maximum Manhattan Distance After All MovesWatch
- 3970Shortest Path With At Most K Consecutive Identical CharactersWatch
- 3980Minimum Operations to Transform Binary StringWatch
- 3981Count Distinct Ways to Form Target from Two StringsWatch
- 3983Subsequence After One ReplacementWatch
- 3986Number of Elapsed Seconds Between Two TimesWatch
- 3992Rearrange String to Avoid Character PairWatch
- 3995Minimum Cost to Convert String IIIWatch
- 3998Transform Binary String Using Subsequence SortWatch
- 3999Minimum Number of String Groups Through TransformationsWatch
- 4006Count Valid PrefixesWatch
- 4019Merge Close Characters IILocked
- 4021Minimum Operations to Make a Rotated Palindrome IWatch
- 4026Maximum Gap Between StationsWatch
- 4028Minimum Operations to Make a Rotated Palindrome IILocked
- 4030Check ASCII PalindromicWatch
- 4036Lexicographically Largest String After Pair TransformationsWatch
- 4043Count Rotations With Exactly K Equal Adjacent PairsWatch