710

This is quite an easy problem. But it took me long time to realize that to determine the number of total game segments is nothing but counting the direction changes to reach the destination.

 

Leave a Reply

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