String

String manipulation and pattern matching algorithms

Reverse String

Easy

Reverse a string in-place using the two-pointer technique, swapping characters from both ends

Visualize

Longest Common Prefix

Easy

Find the longest common prefix among all strings.

Visualize

Roman to Integer

Easy

Convert a Roman numeral string into its integer value.

Visualize

Isomorphic Strings

Easy

Check whether two strings can be transformed using a one-to-one character mapping.

Visualize

Encode and Decode Strings

Medium

Encode a list of strings into one string and decode it back safely.

Visualize

Longest Substring Without Repeating Characters

Medium

Find the length of the longest substring that has no repeated characters.

Visualize

Longest Repeating Character Replacement

Medium

Find the longest substring that can become all one character after at most k replacements.

Visualize

Minimum Window Substring

Hard

Find the smallest substring of s that contains every character of t.

Visualize

Permutation in String

Medium

Check whether s2 contains any permutation of s1.

Visualize

Find All Anagrams in a String

Medium

Find every start index where an anagram of p appears in s.

Visualize

Valid Anagram

Easy

Check whether two strings contain the same characters with the same frequencies.

Visualize

Group Anagrams

Medium

Group strings that are anagrams of each other.

Visualize

Maximum Number of Balloons

Easy

Count how many times the word balloon can be formed from text.

Visualize

Valid Palindrome

Easy

Check whether a string is a palindrome after ignoring non-alphanumeric characters and case.

Visualize

Valid Palindrome II

Medium

Check whether a string can become a palindrome after deleting at most one character.

Visualize

Longest Palindromic Substring

Medium

Find the longest contiguous substring that is a palindrome.

Visualize

Palindromic Substrings

Medium

Count all palindromic substrings in a string.

Visualize

Count Binary Substrings

Easy

Count substrings with equal consecutive 0s and 1s.

Visualize