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

54.55% Correct | 45.45% Incorrect
Last Solution submitted on Aug 26, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers28

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!
Go to top of page