Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Why not use recursion?
If you program recursively, the intermediate fractions need to be stored in memory. But this probably only takes up a little more space on the stack until the function finally returns, so even with millions of calls it doesn't really matter.
One liner for recursive method.
r,g,b variables are additional variables because you can send variables directly like VeronicaBionicle and i think VeronicaBionicle has beter practice than you
This comment is hidden because it contains spoiler information about the solution
i know it but between this two cases i want to understand which one is better. both functions work under 1ms but when we use thousands or milions of times in another programm it would be different.
I guess it's neglectable, the amount of recursions cannot be very high in any case.
This comment is hidden because it contains spoiler information about the solution