I've translated this to python and have the rank to approve it myself but since it's my first kumite, would prefer someone checked my work and approved it for me.
AHH, that has to be it! I forgot that assignment only makes references to lists in python (been away from it for a good while) and I vaguely remember running into this same issue doing a Project Euler problem years ago. Thanks so much for the reminder!
If more than one of the above conditions occur, the function should return one of the appropriate messages.
When the array is both not square and the wrong size, instead of accepting either message it seems to only accept
"Array not square"
3rd time's the charm I hope, re-published
Ah yes, I had intended to do this:
but having run it now see that while it works, it is prohibitively slow, I will limit the random positives to your suggestion and re-submit
I think I've taken care of all the things you've mentioned, let me know if I missed anything.
I've translated this to python and have the rank to approve it myself but since it's my first kumite, would prefer someone checked my work and approved it for me.
can anyone explain to me why when the input is
po
the console returns
['polish', 'portrait', 'pork'] should equal ['portrait', 'pork']
how is
'polish'
not a valid match??This comment is hidden because it contains spoiler information about the solution
AHH, that has to be it! I forgot that assignment only makes references to lists in python (been away from it for a good while) and I vaguely remember running into this same issue doing a Project Euler problem years ago. Thanks so much for the reminder!
This comment is hidden because it contains spoiler information about the solution