School Tie (11)

A school tie with a non-repeating pattern of coloured strips has been produced with the stripes in the wrong order.  The board of governors proposes to fix the ties by repeating cutting them into two pieces, reversing the bottom piece then sewing them back together. See poster for example Write a program which given the correct and incorrect order of the strips calculates how to cut the ties. Taken from the 2011 Informatics Olympiad.  Click here to view all the competition tasks. © British Informatics Olympiad

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.