Is anyone understood Halloween Candy | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is anyone understood Halloween Candy

17th Apr 2020, 7:14 AM
Mannam Rama krishna
Mannam Rama krishna - avatar
6 Answers
+ 3
MC Ritnem $tan No, I think you confused candies with dollar bills. Read the task again.
18th Apr 2020, 8:42 AM
Shadow
Shadow - avatar
+ 2
Does it mean that whatever number of houses you visit there would be only two houses who give out candies????
18th Apr 2020, 7:38 AM
xkcd
xkcd - avatar
+ 2
Shadow I've just understood the problem and solved it
18th Apr 2020, 9:38 AM
xkcd
xkcd - avatar
+ 1
What did you not understand about it?
17th Apr 2020, 7:20 AM
Shadow
Shadow - avatar
+ 1
Confusion in how many houses gave candies
17th Apr 2020, 7:22 AM
Mannam Rama krishna
Mannam Rama krishna - avatar
+ 1
As the task states, "all but three of them". So if you subtract three from the numerical input giving the total number of houses you visited, that would be the number of houses that handed out candy. But you don't really need that information to solve the challenge.
17th Apr 2020, 7:25 AM
Shadow
Shadow - avatar