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.
tbh, i just did it using trial and error, i dind't know the math either
the whole thing can be doe using trial and error
I would be impressed if you didnt use a script to generate that and wrote every piece like a true unga bunga code chad
there is always that one guy xD
return classmates times pages if classmates bigger 0 and pages bigger 0 else 0
imagine you could write the code like this :D
smort
Thats a really good advice, thank you!
I was boldly trying my solution for PowerShell and always takes too long!
really like your min max solution!
this must be the biggest troll ever,
pls take me as your student sensei
Nice idea! i think a small class or construct like EpedemicResult or something would be even better,
so you have propertynames to call on, instead of three numbers without context.
If you struggle with making your algorithm fast enough like me to pass the attempt tests,
but are able to pass the normal tests, try to
loop through every possible input from 1-10 or more and analyze the outputs to find simularities on them.
Than you will realize the way to optimize your algorithm.
I was having a hard time with this Kata, almost wrote a fraction library to solve it, but couldnt do it.
Than i looked at the solutions and was devastated on how simple and good they were, after that i could see it
myself in the test cases...
But i wonder if you could find it out without them, my mathematical knowledge is pretty basic to bad.
Is there anyone who accelerate or is smart enough in this field to give me a math breakdown or direction to look at for this?
eager to better my logical and mathematical understanding!
definitely the most readable solution, much like 👍
you can stack cases like that? didnt know that
very nice one!