Orange Challenge | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Orange Challenge

How many oranges you need to collect, if you have to split a random number of oranges into the half, subtract the half of an orange from the remaining amount without cutting any and at the end keep one for yourself after repeating this process three times? https://code.sololearn.com/cMIFnLm3i4pz/?ref=app

21st Oct 2017, 9:35 AM
Vas
Vas - avatar
2 Answers
+ 4
Thanks for this challenge, vas as ! I made a python code to find the result : https://code.sololearn.com/cCqBbs7MI3w0/#py
21st Oct 2017, 11:14 AM
Cépagrave
Cépagrave - avatar
+ 7
I find it interesting but unfortunately my English fails me. 😅
21st Oct 2017, 12:43 PM
Zephyr Koo
Zephyr Koo - avatar