Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 551. Have you seen any Spindromes recently?

Created by AMITAVA BISWAS
  • 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.

Problem Group

Solution Statistics

17 correct solutions 32 incorrect solutions
Last solution submitted on Jul 15, 2015

Problem Comments