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
expected
andactual
are swapped in random test case assertions.static
dragons > Integer.MAX_VALUE / 2
)Fixed everything btw.
The translation should use JUnit 5 instead of JUnit 4.
Approved
Then this kata should be reranked...
Yeah, most PU (beta testers) don't realize that basic loop tasks are actually ranked seven.
Knowing how to avoid the loop here involves far more knowledge (even if "basic") than writting the very same for loop we were talking about. So how would that be 7 kyu only???
There is a differnce between a coding performance constraint and a basic mathematical transformation. I won't say very basic, but really quite basic.
I voted 7, and I think coding performance constraints start at 5, not 6 ( 6 is for algorithmic complexity ).
but 7 is not appropriate with perf constraint...
Majority of votes were split between 6 and 7 kyu, which seems appropriate for this task.
The kata requires better than
O(n)
(O(sqrt n)
,O(log n)
,O(1)
). You can't count up to1e9
in time, let alone up to1e18
.It's not up to the kata author to decide on the rank! Beta solvers vote on that. ( And they knew the performance it required when they voted. )
What is your solution's OBig?
I do not agree with you. In english, space char is the word's separator. An anagram is a WORD that can be mixed to create another. So, in 'E h llo' there are 3 differents words.
If you consider 'E h llo' as string, and not as a word, spaces are part of this string.
To me, if this issue is not specified in the instructions, your exemple should return false by default.
Just an opinion
thenks :)
Thanks for the comment. Firstly I started to count this '-'.
@B10nicle, To eliminate these kinds of assumptions I have specifically mentioned about Y's & F's index and their differences. This should give an idea that, the solution is based on this.
And regarding the explanation not being too great, I believe I have provided enough examples and rules.
Loading more items...