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.
.
You're misunderstanding what a rotation is if you say there are 23 of them. Have you read the wikipedia link?
There are 23 rotations of string 'bsjq'. Array ["bsjq", "qbsj", "sjqb", "twZNsslC", "jqbs"], wich contain only 5 elements can't include all 23 rotations. I can't anderstand why this case return true.
This comment is hidden because it contains spoiler information about the solution
Check my code for a more optimized version of your def get_sum
Which is smaller?
Yes of course you need to know the color of the field :D
1
is black and0
is white.I took a example QRCode. The field will be always different, you only have to understand the way you go through the field. (Like the red arrow)
Right, no problem with that. The parameter init is what it is. Nobody said it should be a[0].
They are equal according to the description.
Not an issue. Read the description properly.
+ Your code is funny XD
+ Are you summing it up correctly?
Your function is returning
None
. And the tests try to sort that, that's the error about. See what it does here: http://pythontutor.com/visualize.html#mode=editInstead of
pass
it could sayreturn (0, 1)
, like this:Where is your tuple?
Still, 3.8 should be enforced or set as default, otherwise we'll see this popping up again and again.
Switch to Python 3.8.
Loading more items...