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.
Plz fix '0.0 is above freezing temperature' (Python)
The mental fortitude to sit there and compose this piece of code is impressive. No cap.
You're right, assuming
progress
is not set outside of the User class, the solution should work fine. This can be fixed by changingprogress
into a property that can only be set privately.when a nonsense problem gets a proper solution... what a chad way to solve this one line challenge :)))
This comment is hidden because it contains spoiler information about the solution
It's not even in order!!! LMAO!!!
11/10 solution
Base on how
rank
andprogress
are called in this kata's example, they should be public variables. However, in your code snippet, they're method. When functions are called without the parenthesis "()", they return a function reference in stead of being executed.compact++
readability--
This comment is hidden because it contains spoiler information about the solution
I'd have a mental breakdown writing down those primes before they even reach the thousand mark. S+++ for effort!
This comment is hidden because it contains spoiler information about the solution
It happened to be my misunderstanding. I divided 1 by epsilon to get the iterations. However that was not the right way to do it.
Seems like I misunderstood the epsilon thingy. I saw 0.001 epsilon -> 1000 iterations so did a quick 1/epsilon. My apologies.
I have a problem with some test cases:
epsilon = 1E-07 yields iterations = 10000001 where it should be 10000000
epsilon = 5E-06 yields iterations = 200001 where it should be 200000
How is that? Am I missing something? Please advise.
S+ for effort!
Loading more items...