+ 23

[Solved] Code Coach in Swift: Super Sale, Test Case #6

I can't pass the Test Case # 6. Does anyone solve this problem?

17th Dec 2020, 2:16 AM
Satoshi Hirano
Satoshi Hirano - avatar
2 odpowiedzi
+ 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.)
19th Dec 2020, 6:27 PM
Satoshi Hirano
Satoshi Hirano - avatar