Showing 3 of 6 questions
Find the longest string that is a prefix of all strings in a given array. If no common prefix exists, return an empty string.
#1. Longest Common Prefix
Find the longest palindromic substring within a given string. A palindromic substring reads the same forwards and backward.
#2. Longest Palindromic Substring
Find the longest path in a tree where no two adjacent nodes on the path have the same character. The tree is defined by parent-child relationships and each node has an associated character.
#3. Longest Path With Different Adjacent Characters
Page 1 of 1 · 6 total