Posts

Showing posts with the label String

[AMAZON]All combination of balanced parenthesis

Write a function to generate all possible n pairs of balanced parentheses. For example, if n=1 {} for n=2 {}{} {{}}

[AMAZON]Longest palindrome substring

Given a string S, find the longest palindromic substring in S.