Bowling Balls
Bowling balls come in $11$ total sizes, an integer weight between $6$ and $16$ (measured in pounds). In a bowling event, Chef is given a total of $N$ bowling balls, with the $i$-th one being $A_i$ pounds. Some of the bowling balls may have the same weight as the others. Chef can use a bowling ball which is at least $X$ pounds, and at most $Y$ pounds. Find the number of bowling balls Chef can us
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start