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.
Oh sure, you're right. It's obvious, I have been fooled by an error in my code. Thanks for answering :)
an arrow has a head,
'>'
or'<'
, and optionally a tail, that must be located opposite to where the arrowhead is pointing; so=<
is a lone=
followed by a leftwards arrow of size 1. It is true that it is not explicitely specifiedI am asking this as a question, since I don't know if I have missed something or there is an unclear specification: how should be treated
=<=>
? Two valid arrows (=<
and=>
) or a sequence of value 0 (=
-> 0 +<=>
-> double ended arrow, so 0 two),Just because you think you covered every case, doesn't mean it's true :P
You can print input values as shown here https://docs.codewars.com/training/troubleshooting/#print-input (Python example, but printing to console works for every language)
As it stands, this isn't a kata issue, but a question (until proven otherwise).
That makes more sense. I'll return
set()
Changed to return
None
for no solutions caseEven the fixed tests are incorrect:
The expected values sum to
7205
, when there is a configuration with a sum of7336
.{} is an empty dict, not an empty set.
This comment is hidden because it contains spoiler information about the solution
Approved!
Javascript Translation
Thanks
Thanks! Fixed the tests to use @it decorator and fixed the titles. I also noticed that I was doing 800 assertions per batch, when I wanted it to be 800 in total.
This comment is hidden because it contains spoiler information about the solution
@it
.10e8
instead of1e8
etc.Loading more items...