Showing 3 of 7 questions
Determine if a string containing parentheses and asterisks is a valid parenthesis string. The asterisk can represent a left parenthesis, a right parenthesis, or an empty string.
#1. Valid Parenthesis String
Given a sequence of numbers, find the next lexicographically greater permutation of the numbers. If no greater permutation exists, rearrange the numbers into the smallest possible permutation (ascending order).
#2. Next Permutation
Determine if a given string is a palindrome, considering only alphanumeric characters and ignoring cases. Essentially, check if the string reads the same forwards and backward after removing non-alphanumeric characters and converting to lowercase.
#3. Valid Palindrome
Page 1 of 1 · 7 total