Hey! I'm thinking of writing a class or two in python to provide a structure for iterating through each orientation of the N by 2 board. Is this over the top for this kata? I'm trying to be most efficient, but this approach seems like the most viable option at the moment. Let me know if I'm going crazy!
don't use classes, it won't ever pass the tests (too slow)
Hey! I'm thinking of writing a class or two in python to provide a structure for iterating through each orientation of the N by 2 board. Is this over the top for this kata? I'm trying to be most efficient, but this approach seems like the most viable option at the moment. Let me know if I'm going crazy!
Thanks.
Thank you so much! I had looked something over in the range function in my for loop. I solved it!
Read this first. Print the input, see why your code fails (it'll fail in Pycharm too). Mutating the list you're iterating is a bad idea.
Regarding my previous comment, I am using Python.
This comment is hidden because it contains spoiler information about the solution