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.
Yes, it is. I passed the kata without knowing I have an error. Only looking at other solutions made me realise I misunderstood the assignment (at first I assumed that 1 and 2 over interesting number should be classified as almost interesting).
Palindrome error I made (my code worked for odd length input but didnt for even. e.g. 15751 was classified correctly but 1551 was not). This is exactly what edge case tests are for. For palindrome, one test case for even length and one for odd would catch that.
Two issues with attempts:
Those are two bugs I had in my initial solution that were not checked in an attempt. Having more simple test for those edge cases would be helpful.
#python
Given an n x n array,
Attempt gives
[[]]
which is notn x n
(it is0 x 1
array)No tests with
n x m
array. Please fix descriptionThis comment is hidden because it contains spoiler information about the solution