Strings
Working with text: characters, words, reversing, counting and matching.
| Status | Challenge | Topics | Level | Accepted | Save |
|---|---|---|---|---|---|
| 1.Say helloRead a name and greet that person. | BasicsStrings | Easy | 100% | ||
| 2.Count the vowelsCount how many vowels a line of text has. | BasicsStrings | Easy | – | ||
| 3.Reverse a linePrint a line of text backwards. | BasicsStrings | Easy | – | ||
| 4.Count the wordsCount the words in a line of text. | BasicsStrings | Easy | – | ||
| 5.Valid PalindromeCheck whether text reads the same both ways, ignoring case and punctuation. | StringsTwo pointers | Easy | – | ||
| 6.Valid ParenthesesCheck that every bracket is closed by the right kind, in the right order. | StringsStacks | Easy | – | ||
| 7.Valid AnagramCheck whether one word is a rearrangement of another. | StringsHash mapsSorting | Easy | – | ||
| 8.Roman to IntegerTurn a Roman numeral into a number. | StringsMathHash maps | Easy | – | ||
| 9.Longest Common PrefixFind the longest start that every word shares. | Strings | Easy | – | ||
| 10.First Unique CharacterFind the first letter that appears only once. | StringsHash maps | Easy | – | ||
| 11.Longest Substring Without RepeatsFind the longest stretch of text with no repeated character. | StringsSliding windowHash maps | Medium | – | ||
| 12.Generate ParenthesesList every balanced string of n pairs of parentheses. | RecursionStrings | Medium | – | ||
| 13.Edit DistanceCount the fewest single-letter edits that turn one word into another. | StringsDynamic programming | Hard | – | ||
| 14.Longest Valid ParenthesesFind the longest balanced run in a string of parentheses. | StringsStacksDynamic programming | Hard | – | ||
| 15.Minimum Window SubstringFind the shortest stretch of text that contains every letter of another string. | StringsSliding windowHash maps | Hard | – | ||
| 16.Word LadderFind the shortest chain of one-letter changes from one word to another. | GraphsStringsHash maps | Hard | – | ||
| 17.Pattern MatchingMatch text against a pattern with . and * wildcards. | StringsDynamic programmingRecursion | Hard | – |