Description states that all elements in array are unique. Random tests do not guarantee this.
Overall I am not really sure if Java fits the original intent of this kata as you cannot "be concise" with arrays in Java and have to write as much code as with a normal loop so the kata degrades to codegolf the Java boilerplate.
Your refactored solution did not contain what I was looking for. Keep researching :)
Why?! It is not specified in the description - stating this is only a code golf kata, that should be more interesting in the end than its current state.
Your solution is wrong and fails with inputs like
8675309
it returnstrue
instead offalse
.Not a kata issue.
You're not doing that right.
Everything is working on my end, and I am passing the test. But when I attempt, it is saying expected true to equal false and vice versa if I change.
Scala translation
Good problem!
Java:
Which language am I missing?
Description doesn't take into account each language-specific character limit.
I updated the description to reflect each language character limit in my CoffeeScript update
But no telling if anyone will ever aprove it
This comment is hidden because it contains spoiler information about the solution
Why?! It is not specified in the description - stating this is only a code golf kata, that should be more interesting in the end than its current state.
horrid question