Tag: string
All the problems with the tag "string".
-
Leetcode 2781 - Length of the Longest Valid Substring
Given a string and an array of forbidden substrings, find the length of the longest valid substring of the string.
-
LeetCode 125 - Valid Palindrome
Determine if a given string is a palindrome, considering only alphanumeric characters and ignoring cases.
-
Leetcode 271 - Encode and Decode Strings
Design an algorithm to encode a list of strings into a single string and decode it back to the list, working with any set of characters.
-
LeetCode 2405 - Optimal Partition of String
Given a string, partition it into substrings such that each substring contains unique characters. Find the minimum number of such substrings.
-
Leetcode 49 - Group Anagrams
Given an array of strings, group anagrams together. An anagram is a word formed by rearranging the letters of a different word, using all original letters exactly once.
-
Leetcode 567 - Permutation in String
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.