Problem 551. Have you seen any Spindromes recently?

  • Never been to the dwarf planet makemake yet?
  • Assume a new unexplored planet has several moons spinning around it,
  • all on a flat circular orbit and equally spaced,
  • and represented by a sequence of letters such as 'm a k e m a k e'
  • or simply 'makemake'.
  • Another example of a sequence of spinning moons could be '0 3 4 6 4 9'
  • or simply '034649'.
  • Notice that some moons may have same names.
  • Assuming that such a sequence could also be called a spindrome if the spinning moons of same names can be distinguishable from each other by the neighbors.
  • Otherwise that sequence is not a spindrome.
  • The sequence 'makemake' is not a spindrome.
  • The sequence '034649' is a spindrome.
  • Please detect if the given sequence is a spindrome.

Solution Stats

34.78% Correct | 65.22% Incorrect
Last Solution submitted on Apr 16, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers18

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!