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

    Fixed! Thanks for the issue

  • Custom User Avatar

    awesome, thank you-- will fix

  • 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

    Sample tests are up

  • Custom User Avatar

    I will mention how the serialization works in the description

  • Custom User Avatar

    This is a mistake, I will fix, thank you for the feedback

  • Custom User Avatar

    Thank you for the feedback, Node is specified in the input box. I'll consider adding it to the description.

  • Custom User Avatar

    I attempted this kata in Javascript.

    I had trouble understanding the what the kata was asking, even with the test output.

    I ended up with a solution that shifted/unshifted both lists because I thought that's what in-place was referring to.

    After reviewing the solutions it is clear to me that I misunderstood the problem, but I still can't quite tell what I should have done.

    Thanks for the other great katas!