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.
Ruby translation kumited with slightly cleaner description -- please check and approve!
marking as resolved
Great little kata, thank you, aplefull. Could be just me but I'd rate it slightly higher.
Oh, translation problems, sorry for that. Should be fixed now :^)
String can have leading/trailing spaces, you should not count them;
Objective: character(s) that have the most spaces to their right and left.
Test #2: array-->"abcXdXXXefXXgXXXhXiXjXXXXXX" (X corresponds to space)
Spaces for 'g':2+3=5
Spaces for 'j':1+6=7
Solution would be ['j'] and not ['g']...isn't it?
It's an issue, present in Python version.
Yes [0],[0] --> [] weirded me out too. Is this a legit issue or some quirk that needs to be added to the desc?
Well, that's what the issue below is about.
Some empty test are wrong.
In the description doesn't explain how to work with left zero's (ex [0,0,0,4,5]+[0,1]). In maths 00045+01=45+1=46...so, the result will be [4,6] and not [0,0,0,4,6])
You are awesome, sir. Thank you.
I have now attempted copying and pasting several python solutions from the solutions section and they all return the same error, not sure what I am missing.
Added initial solution in all languages where it was missing.
This comment is hidden because it contains spoiler information about the solution
JavaScript version is working fine.
Loading more items...