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.
if you make the mistake of return the value and not the key of the map, the normal test pass ok but the random test fails.
I had wrongly assumed that the line that you mentioned constituted three operations.
Thanks for that very fast response Chrono79!
That, exactly.
Hi all,
What does the kata mean by saying that "You can do at most one operation"? What comprises "one operation"?
Thank you for any response.
This comment is hidden because it contains spoiler information about the solution
the tests are "not the best". In case, you need to response the index of the last ocurrence of the minimum, whats the diff if i resturn the first ocurrence?
also.. 209917 says swap 0 to 1 ? whats the diff between swap 1 to 0 ?
brilliant, must to be the turtle, as the rabbit moves 2 nodes per iteration... So i would say, in this case a bug attacked the turtlle so the rabbit went one by one at the turle's speed, doing the job :D
why is almost linear? isnt it O(n) ?
Good kata for practice string operators, formatting and so on, but takes lots of time to just get the exactly same output \r\n, two spaces in some lines, the last line without newline formatting '.2f' not round(float,2) and this kind of things ---> mehh
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Tryed this before but needed to int() the indices as i was getting thi in my machine:
TypeError: slice indices must be integers or None or have an index method
same here, in my machine it returns false but for codewars its true. :S