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.
Hi. I've added some random tests in Rust. Since I didn't add the original Rust translation, I'd be happy about some feedback on the additional tests. Thanks.
Eh, should have used
return true
for the empty iterator. Nvm.Feel free to fork/resolve the conflict. The translation was posted two years ago, I'm not active anymore.
Can you please remove the
using namespace std
?I've edited the tests (didn't have edit rights two years ago). They should be more robust now.
The
String
result remains, though, since that's in the kata's description. *sigh*I'm not sure which language you use, apparently you mutate
numbers
:This is not an issue, as the kata/the tests aren't broken.
That being said
return "hello";
and"hello"
are the same if they are used as the last expression. However, could it be that"hello"
isn't the last expression in your code?Please post your code in a comment and mark it as having spoiler content.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
function bobsTaxes(work, personal, cat) {
return work + personal + cat * 19 / 100;
}
This comment is hidden because it contains spoiler information about the solution
Yeah, the last Ruby random tests don't work. @g964, care to fix them?
Seems good. C# is one of those languages where
expected
comes beforeactual
, right?What does
c(...)
do in your (secret) reference solution? Other than that, I think I understand the R code, just didn't want to grasp another language yesterday during work, sorry.Loading more items...