Description: You have a necklace, which consists of N random arrangement of red, white and blue beads composition (3 < = N < = 350). Want to truncate it somewhere necklace straightening followed from one end to the other end of the number of collection of beads of different colors, until he came up with a different color of beads and then from the other side to do the same operation. (End of the collection of beads color may be different from the other end.) Try to find a truncated necklace location, allowing us to collect as much as possible the same color beads.
To Search:
File list (Check if you may need any files):
001 编程珠玑.cpp