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.
This comment is hidden because it contains spoiler information about the solution
it doesn't work for None
gg
Sure! Thanks a lot!
It works without return because the sample test (scroll a bit to see it in the coding page) tries to call factorial(). Talking about what he imported from math, factorial, it is imported as a function after all. Hope you get it.
This was probably one of the simplest ways to do it without digging into regex. nice job.
Yeah, really. They're not the same.
But because there is no proper order in XCTAssertions, it could be your answer is right and the expected one is wrong, please elaborate.
This comment has been deleted.
XCTAssertEqual failed: ("h(t) = -16.0t^2 + 17.880t + 51.0") is not equal to ("h(t) = -16.0t^2 + 17.88t + 51.0") -
XCTAssertEqual failed: ("x(t) = 83.070t") is not equal to ("x(t) = 83.07t") -
R E A L L Y ???
And... Why it works without a return (nor even rest of the code)? :/
thats what i mean, my solution was way too long compared to this beauty
why. Its good
Did it like this, but with regex \s+. It took me 4 mins.
I'm kicking myself because of this code
This comment is hidden because it contains spoiler information about the solution
Loading more items...