TC CDPlayer

From Algorithmist

Jump to: navigation, search

[edit] Summary

In the problem, they describe a mechanism for putting a CD player on "random shuffle" mode. You need to determine if a given string could represent the order of songs played.

From TopCoder Single Round Match 343.

[edit] Hints

  • Guess the first time that the CD finishes a "round" of shuffling.
Personal tools