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.
done (
new String("needle")
is enough to create a distinct object)The one-liner requirement is stupid.
There are no random tests.
How is the nonce appended to the content? a
int
can't be appended to thestring
directly.These are both issues.
This comment is hidden because it contains spoiler information about the solution
It could be more clear what the possible versions of rose there are, in the test case there is only rose
That's true, i did that xD
Nice kata and nice introduction for beginners to crypto-related APIs. One thing to improve tho: description on
ComputeHash
says: "It should append the nonce to the content". I think it would be nice to specify what does "append nocne to the content" mean, because there are many possible "concatenation" operations for the (string, uint) pair. Is itcontent.append(noce.toString(some format))
? Or maybecontent.bytes.concat(nonce as bytes)
? Or maybe even something else?And yeah, no random tests ;)
without seeing your soluiton, it's impossible to answer (don't forget the spoiler flag)
This kata is very simple, but when I run my solution in IDE with test data my solution work is right, but when I copy-paste my solution to "codewars" on second case (when I get "rOsE") my solution return "false" O.o. I thought that "O" is zero, but it's letter.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The issue with that, it also tells people that " " should equal "". Which, from a programmer's perspective, is nonsense.
Loading more items...