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.
nice way to keep it simple and understandable
Im all about f strings now. Makes it even more readable than Python already is.
emmmm...s isn't in the second () so it isn't multiplied by the 60 but only by the 1000
It does exactly the same as your solution, but instead of using if-else the max-function decides if (n-2)^3 should be calculated or to simply return 0, when n-2 is smaller than 0
This comment is hidden because it contains spoiler information about the solution
the hardest part of coding it not to make code work, but to make it readable to anyone else, including your-future-self
yes, this is clever but gives you that "what the ... Ooooh ..." moment, it requires you to really read and understand the code.
Hi! Anything i can help with?
!!!
how did you solve it? i din't understand the comment above/
If this is about C++, there is an open issue below.
the SAMPLE tests given compare the results of 2 executions of the function with the same parameters
so, the function can return anything - all tests will pass
my first implementation returns {1, 2, 3} and it pass all the cases
Sample test should be reworked
already raised below, closing
C++, failed test:
RandomTest
Expected: equal to 2.95824
Actual: 2.95824
Loading more items...