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.
The precedence of
=
is lower than that of+
. You should be parsinghijwpyk = 73 + 44
ashijwpyk = (73 + 44)
not as(hijwpyk = 73) + 44
.It looks like the error message has the "expected" and "received" backwards -- that is, your code said 73, but the expected value is 117.
just gotta hardcode that specific case
Kata is still unsolvable at time of this comment due to this issue.
Now, you can find it.
this means you solved it the hard way. x)
Kudos!
you can fork your previously passing solution (it should already be visible in the solutions page) and work there wih your updated code. This way you can also see the tests.
Hello,
The expected output in the full test suite is effectively the following (mnius new lines):
So I guess you're mutating something you shouldn't in your code?
When that happens, it's normally because your code destroys the input list inside your code. And then the expected result is calculated having an empty list as input.
The best way to get help, if it is an option for you, would be to visit the Codewars discord server, people there might be able to help. Otherwise a good idea might be to first just post an example input which your solution currently fails, as well as the expected answer, and the actual answer your solution makes.
the thing is, you didn't actually post as a question, you posted as an issue, which is a different category, and because there is no issue with the kata, it was appropriately closed
meanwhile, you were in fact given some actual help with this:
i wish you the best of luck!
that's the definition of random. No issue here. Excpet maybe a fixed test lacking. You're the only one who can help you, here: find a way to extract an input that is making your code fail, then debug your code.