Ad
  • Custom User Avatar
  • Custom User Avatar

    Hmmm, I like the title aesthetically but you're correct it frames the problem incorrectly. I will try "Shuffled N-Ary Tree"

  • Custom User Avatar

    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.

  • Custom User Avatar

    Fixed! Thanks for the issue

  • Custom User Avatar

    awesome, thank you-- will fix

  • Custom User Avatar

    run_test_case is from preloaded, not solution. solution implicitly imports preloaded, but importing it from solution means user can supply their own implementation which overwrites the entire testing mechanism.

  • Custom User Avatar

    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

  • Custom User Avatar

    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?

  • Custom User Avatar

    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

  • Custom User Avatar

    Marking as resolved so that I can republish, but please feel free to make a new issue if there are still issues

  • Custom User Avatar

    Okay, added better tests. This is my first submission, so I'm still getting used to it.

  • Custom User Avatar

    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?

  • Custom User Avatar

    Are you sure you can just copy paste the description and title from LC to here?

    (Marking this as Issue as this needs clarification)

  • Custom User Avatar

    Looks the same to me. you may need to save the changes or republish if you think it's ready.

  • Custom User Avatar

    Sample tests are up

  • Loading more items...