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.
Impressive :)
Can you help add the
PERFORMANCE
tag?Already added by somebody.
You're right, the solution did not cover those cases.
I like your modifications.
Thats interesting way to do it. Could you explaing how that works? What topics should one cover to understand how it works?
Elegant way to play around bool.
Hi, your solution is clever, but it may cause wrong result.
For example, print(same_structure_as([1,[]], [2,[2])) will return True, which is not correct.
And it didn't. It seems something implemented in 3.10 according to the other commentary. I used this in C# and Java, but didn't tried in Python just thinking it hadn't it.
Fixed
Merged
Python fork (Author gone):
Fixed the
control
function in the test by properly HTML escapes the username in the URL (Fixes this issue)Description amended (Removed invalid username + language agnostic fix)
This comment is hidden because it contains spoiler information about the solution
i liked this - this is how i done it. Although i think i may have been bias; been coding a few years in python and would not have consided looking into a switch function or similar. I've been brushing on C++ and CUDA over the past few weeks and made be try what i would consider doing in C++. Which also makes me wonder, how does this solution stack in terms of execution time and memory compared to others. Anyone done any profiling on it?
Thanks for the explanation. I mistakenly thought that would result in undefined behavior.
This comment is hidden because it contains spoiler information about the solution
Loading more items...