You are viewing a single comment's thread. Return to all comments →
Integer array indexed by cost?
What if there are two flavors with the same cost. How would you resolve that using an array?
the value of array[cost] would represent how many duplicates are in your set.