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.
typo learnign to learning
You could then just have it return (-1, -1) in the case of no solution. It is atypical to have differnt output types.
the two returns should be of the same type.
Currently:
1 -> tuple
2 -> string
You should consider changing the output if there is no solution, perhaps (0, 0). This would let them both be tuples. Or you can return '__ chickens and __ cows' and 'No solutions'.
it's all fixed now...i think :)
I edited the test cases, let me know what you think. I'm going to mark as resolved. If I need to edit anything further, just let me know. :)
So, should it be removed? I was unclear what you were trying to say...let me know and I'll make changes appropriately. Thanks!
I made more edits to the explanation and added more test cases. I'm going to mark as resolved, if there's more to do, let me know. Thanks again!
It was hard to write an explanation without giving away the code. My first draft is similar to what is published now. The psuedo-code clears up the explanation, but gives away a ton. Let me know what you think of it now. Thanks for the feedback. I like the quality control on Codewars :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Great suggestion!
Update: Made the edit and republished.
Same here. I'm still slightly new to codewars, but when I see 7, I assume a one to 5 liner. This was not, hahaha. Good kata and thanks for replying! I just published my first one yesterday if you wanna check it out and give feedback.
I highly suggest this kata moves from 7kyu to 5kyu or 6kyu for alignment. Many people may look for simple solutions, since it is 7kyu. I think putting it in 5 or 6 will allow people to properly gauge the work.