From 1st to 24th Dec, Scrimba prepared for us 24 challenges from the JavaScript world. Bellow, I will describe all challenges so far, also with links to my solutions.
n children have got m pieces of candy. They want to eat as much candy as they can, but each child must eat exactly the same amount of candy as any other child. Determine how many pieces of candy will be eaten by all the children together. Individual pieces of candy cannot be split.Example
For n = 3 and m = 10, the output should be candies(n, m) = 9…
Geek, Gamer and Front-End Developer specialized in ReactJS