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.
Considering the topic is refactoring:
"Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior"
One way to minimize altering it's external behavior is to write self.name = my_name in case my_name is used as a keyword somewhere.
Shouldn't baryon_number be a class variable, since it's the same for every object?
Maybe add this to sample tests:
test.assert_equals(sum_fracts([[1, 3], [2, 6]]), [2, 3])
Without it a simple LCM function works for all tests samples.
The fact that there is only one test out of 106 that tests for the 3x3 rule certainly has caused a lot of confusion.
Annoyed me enough to cheat.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Almost makes me regret not googling it
And I thought mine was clever...
Leading zeros, probably.
This comment has been deleted.
xD
Hey, I'm surely doing something wrong, but I don't understand the error I'm getting.
STDERR - NameError: name 'is_valid_walk' is not defined
The test examples seem to work fine in pyCharm.
Oops, duplicate