+ 23
[Solved] Code Coach in Swift: Super Sale, Test Case #6
I can't pass the Test Case # 6. Does anyone solve this problem?
2 Answers
+ 21
I solved this. I had just overlooked an error case when a user input is one item.
(In other words, the input of test case #6 is one item, so the answer is 0.)