Ad
  • Custom User Avatar

    Now i understand. Im trying to figure it out a solution

  • Custom User Avatar

    Thank you for your feedback but that solution does not pass all the tests.

  • Custom User Avatar

    @Cépagrave: you forgot to rank it...)

  • Custom User Avatar

    I'd say more of a 5 - the string manipulaiton is a level 5 thing. Anyway it was in beta for 2 weeks and only got 4 solves. I will probably put it back again at some point. I'm currently making a kata about the simple substituition cipher if you want to have a look? ;)
    Thanks for your input

  • Custom User Avatar

    Okay I think you had a problem when I had the sorting in the wrong order but that was a while ago.
    Yeah I just assumed eveyrone would use numpy roots and I don't really like disabling imports because I feel that's kinda the beauty of python.
    The kata isn't that bad - it can be a bit frustrating to solve though. I think it looks like I'm trying to take a trivial task (numpt roots) and just make it harder by removing repeated roots and string manipulation. It's just a bit here and there and katas should be direct and focused. Perhaps there could be a kata to find the number of unique roots of a polynomial of degree n?

  • Custom User Avatar

    When you have submitted, I'm going to unpublish it again and maybe we could work on some ideas together? I think we can use kumite. Let me know :)

  • Custom User Avatar

    I'm interested in why it took the wrong order @Cépagrave. I sorted it first by real and then by imaginary. Should work fine because imaginary parts are always 0, -x and +x so there would be no rounding errors unless abs(x) is really small in which case the it is probable that you found a repeated solution?

    I think you had the same problem as other people and you didn't identify a repeated solution correctly.

    I get what you mean about it being two katas. I don't think this kata is good enough in its current form.
    I orignialy thought of doing the hard version but is sounds like a NIHGTMARE.

    Maybe this idea could work. Something along the lines of imput being 4 integers, output some exact solution? Or maybe just have input as integers, scrap the string business, and just make it easier?

  • Custom User Avatar

    I unpublished it because I didn't think it would ever get out of beta - I've put it back for now so you can submit if you like ;)

  • Custom User Avatar

    there aren't really any "way" to collaborate to it. Sort of. If it's in draft, that means the author unpublished it. First question would be "why?". If this is about issues to resolve and you have the solution to them, you can tell to the author (he'll see our messages here anyway) and see with him. But if he just doesn't want the kata to be published for a reason or another, there is not much to do. ;)

  • Custom User Avatar

    yes, this kata is in draft mode. Hence it cannot be completed, actually.

    (you're actually not supposed to end up here)