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 guide may help:
https://docs.codewars.com/training/troubleshooting
fixed
done
node 18+ enabled
duplicate of this issue
thanks for the explanation. in hindsight it was foolish of me, of course the hash code should change if
data
is mutated. i changedGetHashCode()
to simplyreturn Data.GetHashCode();
.C# warning in the preloaded section:
(OP was solving in JavaScript)
your implementation of
count()
has a bug, it skips the last element of the list because yourwhile(head.next)
is not entered for the penultimate element. not a kata issue.I added the following
GetHashCode()
implementation in preloaded, which cleared the warning. I don't know whether it is idiomatic enough though, I read that the hash code should stay constant for the lifetime of the object, which is not guaranteed here if we use theNode
fields for the hashcode computation, as they are mutable. I tried to work around that.are you sure ? I can see sample tests just fine in Ruby. perhaps save your code somewhere and hit
RESET
? you may have deleted them by mistake, or there was a glitch due to a recent fork (i see one Ruby fork approved 8 days ago that upgraded to Ruby 3.0)do not erase the instructions in the initial code without reading them, and do not raise issues so lightly. you have to report the length of your output array through
length_out
in the future, please do not use the
issue
tag to ask for help and use markdown to post your code(see there).
Debug your code. I added this line to your code, and this is what I see for
n = 56789
:whereas the proper rotations of
56789
as shown in the description are:there are no sample tests in Java, as reported there. unless there was some kind of glitch, you must have added those sample tests yourself. without more details we cannot know what happened, so I am closing this; feel free to provide more information
that's not an issue, she does already know it ;-)
replaced the HTML table with Markdown
Loading more items...