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.
.
I revised the descirption to closely match your suggestion, hope you find it more clear for you and the perspective of others?
As for me, the condition "no letters or numbers after the last closing parenthesis" still does not clearly defines, whether "2(ab)3(ce)" is a valid input.
No, the limits should be enforced. They used to be
0 < length string < 140
and1 < number < 1e9
, and input validation used to be unnecessary. Test suites should test correctly.test("1e9") -> -1
would add integer overflow issues, but in the logic would only add an extra check at the end. That would not make the kata better.yes, you are right, and in trying to get rid of the wrong decision, I forgot about my own conditions of the game. The problem will be resolved as soon as possible.
Suggestion:
You must return the index of the word which realizes the highest score. Ties are decided by length. If two or more words have the highest score, then the index of the shortest word should be returned.
I dont think Dinglemouse is reporting a bug, but rather suggesting a fixed test to be added for this edge case; something like this:
does this need further changes? one thing I don't like here is how it doesn't show input on the fixed tests, but other than that I'm just wondering if I can finish this up
..also it's printing, which it shouldn't
(I'll start editing, brb)
technically, you hide the loop with a call to
memcpy()
;-)Fixed.
Fixed
Fixed in fork.
Sure thing! It's a bit like being a GPS for a prisoner with a map of freedom. Even though they're unlocked, sometimes they need someone to say, "Turn left at the cell door and enjoy your newfound freedom!"
Loading more items...