How many palindromes? - MATLAB Cody - MATLAB Central

Problem 548. How many palindromes?

Difficulty:Rate
  • Given a set of letters, count all possible palindromes, using all of those letters.
  • For example, if the set is {'A' 'A' 'A'} then the number is 1.
  • If the set is {'A 'A' 'B'} then the number is 1.
  • If the set is {'A' 'B' 'C'} then the number is 0.

Solution Stats

55.22% Correct | 44.78% Incorrect
Last Solution submitted on Jun 28, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers29

Suggested Problems

More from this Author100

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!