ig...@yahoo.com (Isaac Gouy) wrote in message <news:email@example.com>...We can use a similar approach to accumlate the intermediate bowling
scores for a possibly incomplete sequence of valid throws - update the
sequence after each throw and recalculate the scores.
Start = scores [10, 4,6, 10, 4,6, 10, 4,6, 10, 4,6]  0 0
scores pins a total 10 = a
scores [x,y] a total count
scores [x,y,z:rest] a total count
The answer in this case would be [20,40,60,80,100,120,140] - the 8th
best wishes, Isaac
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.