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
correct me if I am wrong, but string slicing in python takes O(n) time on average where n is the length of the string because it (generally) copies and returns a new string object. Thus, using list comprehension to solve this problem could take up to O(n^2) time, on average because we are creating n copies of the string, and each copy operation takes O(n) time.
It was done that way on purpose: https://www.codewars.com/kata/5865918c6b569962950002a1/discuss#593956a2bcf4370a24000088 althought
string
isn't a reserved word in Python.On python string is misspelled
I think that was a mexican wave. Something very similar but not the same.
I could be wrong tho.
Roger that. Thanks!
Your function doesn't return, not a kata issue.
Don't know if this is reporting (if not, whoops!), but there is an error message on the test. (JavaScript)
Unhandled rejection TestError: Expected: 1, instead got: undefined
This kata was decided to stay.
.
I updated the translation a bit and announced it as a suggestion.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/150.
Please join the discussion to help us identify duplicate kata and retire them.
BasicTetst("Hello","o",1)
Test Failed
Expected: 1
But was: 4
???
The question should specify whether or not it is case sensitive (as "Hello" and "hello" are not the same string unless it is not case sensitive.
Hey, shouldnt name the function rotate since in c++ there is a function with the same name ^^
Loading more items...