Question DSA-STR-0071
HardHow many distinct palindromic subsequences of length 3 does a string of n characters have at most (alphabet size 26)?
- A.
n³
- B.
n²
- C.
26 × 26 = 676
- D.
26
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Strings question
How many distinct palindromic subsequences of length 3 does a string of n characters have at most (alphabet size 26)?
n³
n²
26 × 26 = 676
26
Sign up free to see the answer and a step-by-step explanation.