Facebook | Phone Screen | Palindromic Subsequences
12878
Sep 01, 2019
Given a string s, return all palindromic subsequences of s.
Example 1:
Input: "abac"
Output: ["a", "b", "c", "aa", "aba"]Comments (20)
Given a string s, return all palindromic subsequences of s.
Example 1:
Input: "abac"
Output: ["a", "b", "c", "aa", "aba"]