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.
I believe there is an issue with the card on the fixed test for Python. My code passed all the random tests, but I would get an index error on the fixed tests. I entered this at the top of my code and everything passed:
This comment is hidden because it contains spoiler information about the solution
Question: My code (python) passes all the 100 "correctness" tests but times out during the 100 "performance" tests. I'm using numpy to count all the nxn subarrarys that have only 1's and storing the results in a dictionary. When there are less than 4 nxn arrays with only 1's, my program returns the result. I can't see how my solution can be optimized without doing some sort of mathematical approach to narrow down the subarrays that need checking. Is a mathematical approach necessary? Any suggestions would be greatly appreciated.
I have the same question. If the input is the PIN number as a string, then my code should work.
This comment is hidden because it contains spoiler information about the solution
Thanks so much for the reply. I got it to work. The fact that someone like you would respond so quickly to someone so new at coding is why I love this community.
Sorry for marking it an issue. My mistake. I reread all the description and it says to truncate my answer to 6 decimal places. I've tried using '%.6f'% and importing Decimal and all sorts of things to get the last digit to match your tests, but no matter what I do some of my answers are off by 0.000001.
I know you're probably busy with more important things, but I would love if you could help me.
Note, your kata's are wonderful and it feels so satisfying when I complete one correctly.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You're right. I'm an idiot. Mine was calculating the largest square numbers that 'fit' in the length x width product, ignoring the actual geometry of the situation.
And let me reiterate: "I am pretty terrible at coding (beginner), so I definitely could be missing something here"
sorry to waste your time
This comment is hidden because it contains spoiler information about the solution