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
This comment is hidden because it contains spoiler information about the solution
I added my whole solution code.
This comment is hidden because it contains spoiler information about the solution
I've met a problem in Kata 'Take a Ten Minute Walk' - http://www.codewars.com/kata/take-a-ten-minute-walk/train/ruby
My code:
def isValidWalk(walk)
if walk.length!=10
return false
elsif
ns = 0
ew = 0
for i in 0..walk.length-1 do
if walk[i]=='n'
ns=ns+1
elsif walk[i]=='s'
ns=ns-1
elsif walk[i]=='e'
ew=ew+1
elsif walk[i]=='w'
ew=ew-1
end
i+=1
end
end
end
All tests passed correctly, but the system tells me about an Error:
STDERR:
main.rb:7: warning: found = in conditional, should be ==
But the string #7 is: for i in 0..walk.length-1 do
It does not contain symbol '='...
Is this a bug?