+ 22
[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
+ 20
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.)
+ 1
https://sololearn.com/compiler-playground/W8szcp6zjKm0/?ref=app
https://sololearn.com/compiler-playground/WAr5ulTyl8Wj/?ref=app
https://sololearn.com/compiler-playground/WEzm3j8E7gb5/?ref=app
https://sololearn.com/compiler-playground/cHohNC7aKM72/?ref=app
https://sololearn.com/compiler-playground/W3fAc4ThtYZR/?ref=app
https://sololearn.com/compiler-playground/WA0J691Q41Wt/?ref=app
https://sololearn.com/compiler-playground/W5LplGgfKqB9/?ref=app
https://sololearn.com/compiler-playground/WU2AXd3jioc2/?ref=app
https://sololearn.com/compiler-playground/c7QyhIssBeXe/?ref=app
https://sololearn.com/compiler-playground/cnOfRsja195F/?ref=app
https://sololearn.com/compiler-playground/WBnAT38K6uLY/?ref=app
https://sololearn.com/compiler-playground/WoaasVkN7i5u/?ref=app
https://sololearn.com/compiler-playground/WJkq13gJdSvt/?ref=app
https://sololearn.com/compiler-playground/co9ul592mbgQ/?ref=app
https://sololearn.com/compiler-playground/cWUG8nXKLWko/?ref=app
https://sololearn.com/compiler-playground/c6uoL8uxJ7JU/?ref=app