| about | help | code help+videos | done | prefs |
bowling
In bowling, you get two turns per frame, and you want to knock down all 10 pins in a frame. If you knock them down on the first turn, it is a strike, and you will not take the second turn in that frame. If you knock them down in 2 turns, it is a spare. a - the number of pins knocked down in the first turn b - the number of pins knocked down in the second turn (will be 0 if a is a strike) bowling(10, 0, 10, 0) → 20 bowling(5, 5, 5, 5) → 15 bowling(4, 2, 0, 10) → 6 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy