You need to sign in or sign up before continuing.×
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.
π₯°πππππ₯°π₯°
Raised as issue in discourse.
I am not sure how the other translations handle this, but the input format seems fundamentally flawed. With inputs as dicts, any node can lead to at most one other node, despite the description and even sample tests trying to give the impression that multiple paths could exist.
For example this is tested in the sample tests:
{'a':'b', 'b':'c', 'c':'a', 'c':'d', 'e':'a'}
, however of course when this is parsed it resolves to just{'a': 'b', 'b': 'c', 'c': 'd', 'e': 'a'}
, the'c':'a'
is lost.Edit: It looks like other translations use adjacency lists. Accordingly, the python translation should use a list of tuples instead of a dict.
Fork from here if you wish to continue working on it.
Approved in new fork. You, as original translation author, are eligible for full rnk/hnr points.
updated to 3.11 and approved
Magic
i did the same thing but created a variable for a+b then bin()[2:] that
first solution that came to mind
This comment is hidden because it contains spoiler information about the solution
This really good
yeah well i assumed using bin was cheating.
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. Thank you for the remark.
Loading more items...