Showing 3 of 4 questions
Given a string, find and return the total number of unique substrings that can be formed from it based on the contiguous alphabet sequence wrapping around from z to a. Count only distinct substrings to avoid duplicates in the final result.
#1. Unique Substrings in Wraparound String
Find the length of the longest valid (well-formed) parentheses substring within a string containing only '(' and ')' characters. A valid substring has correctly matched opening and closing parentheses.
#2. Longest Valid Parentheses
Find the length of the longest palindromic subsequence within a given string. A subsequence doesn't have to be contiguous but must maintain the original order.
#3. Longest Palindromic Subsequence
Page 1 of 1 · 4 total