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.
Fixed
Hmmm, I like the title aesthetically but you're correct it frames the problem incorrectly. I will try "Shuffled N-Ary Tree"
The title doesn't seem to match the description. I thought we needed to shuffle the nodes of a tree, but you are asking for the original root node from a shuffled tree.
Fixed! Thanks for the issue
awesome, thank you-- will fix
run_test_case
is frompreloaded
, notsolution
.solution
implicitly importspreloaded
, but importing it fromsolution
means user can supply their own implementation which overwrites the entire testing mechanism.Great point, curious what the consensus is. To be clear: I didn't use any of their text, images, examples, or code for this challenge.
Here's what leetcode says in their terms of service:
You agree not to copy, redistribute, publish or otherwise exploit any Content in violation of the intellectual property rights.
Since I didn't use their content for this challenge, they'd have to claim that the underlying algorithm question is their intellectual property, which would be evil and bad and harder to claim than if I copypasta'd.
Presumably this question has come up before, but I like this problem so am happy to modify so that I'm following the rules
I added some of the more precise language from the leetcode version. I like having the bit about the driver code down with the test case, what do you think about that?
I'm marking this as resolved so that I can republish with updates from the other issues, but I'm open to improving the description.
I'd like to get the description into a minimum-viable state and then translate this into javascript and typescript, then focus on making a visualization and perhaps a fuller tree for an example.
Please feel free to re-open an issue with specific suggestions and I'll take a look
Marking as resolved so that I can republish, but please feel free to make a new issue if there are still issues
Okay, added better tests. This is my first submission, so I'm still getting used to it.
Is there anything you prefer about the leetcode description? I like mine better, but I'm open to fixing specific criticisms if you have them. If I add one more example will that suffice?
Are you sure you can just copy paste the description and title from LC to here?
(Marking this as Issue as this needs clarification)
Looks the same to me. you may need to save the changes or republish if you think it's ready.
Sample tests are up
Loading more items...