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.
Toy tests fails with
ValueError: max() arg is an empty sequence
if solution is differently rotated. E.g. "AACGTTCG" for first test.I added those tests now also in final tests. I don't see what makes these tests so special that you would not pass all of those as well.
Was able to submit a solution without passing all of the 3 initial toy tests. Was this intentional?
Good question. I am struggling also with the node check.
Per the description:
This isn't a bug. You're not passing because you're breaking the tests, you're passing because the operation you're doing in your solution is a valid way to recolor all the nodes. It's not one that I like, but it's valid, and trivializes the issue.
Perhaps the problem should force certain nodes to start as certain colors, in order to disable this trick? If so, that should be a separate kata. I'm certainly not coding it up here.
Regeardless, nice solution. Resolving.
Now deepcopying inputs prior to administrating tests, so mutation doesn't affect validation. Ty for callout.
This comment is hidden because it contains spoiler information about the solution
Sample tests are also broken:
The kata needs to specify
len(paints)
, because this is relevant to the runtime complexity of the solutions too.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Amazing Kata, thanks for a something closely related to the real world problems.
Thank you for your kind compliment. I try.
This is really great @ALowVerus, thanks for leaving all your work and comments - I wish more people did it as it's a useful learning resource!
Loading more items...