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.
And to complement, you have to write a function that will receive a word and then you'll have to return True or False, depending on whether the word is "comfortable", i.e. you could write it alternating hands.
Thanks anter69. I'm lacking some permission so I can't edit the tests/
That's great ;) Thanks again
Approved. Thank you ;)
Thanks! ;)
Hey,
Thanks for the explanation of both your solution and Haskell ;) It looks good to go then!
And you make good points about some tests being missing. Are you going to add the tests for single characters and empty word that you mentioned?
I'd also add those to the original but for some reason, I can't edit the tests of the Python version anymore.
Cheers
Looks good! Thanks for submitting a translation ;)
Hey there, thanks for submitting a translation!
I don't know much Haskell so I do have a few questions :)
Can you explain how your solution works? My crude understanding is that you're going to compare something in groups of 2 with the
zipWith
using the/=
which is inequality, right? And that's as far as I've got, hehe.About the random tests. Do I understand it correctly that it's going to run 8 different random tests? Also, how are the random words generated?
Thansk!
You're welcome ;)
Hey. That's weird because I have just tested your code and it works.
And "test" is not a comfortable word since all letters are typed with the left hand. So if you're seeing that error it means that your code is returning True where it should be False.
Thanks for creating the translation! It looks good!
Is it really necessary to create 1000 random tests?
I was going to include a random comfortable word part in the test cases but I can no longer edit the test cases for Python.
Also, the users wouldn't have access to the words before solving the problem for a first time, so I don't think it's a big problem.
But thanks for your comment anyway.
Good point. I'll look into that. ;)
The image is being displayed now and I've added the letters for each hand.
Thanks for the feedback, glad you liked it!
Random tests created.
Loading more items...