Ad
  • Custom User Avatar

    i guess your writing style is as good as that solution you were talking about lol

  • Custom User Avatar
    • The user solution is called once now.
    • When I first made the task, I noticed that about 80-90% of the random tests will result in `False`. I wanted to, kind of, solve it to make the numbers of valid and invalid serial numbers about equal to each other. But at the end, I did not seem to care. Now, it's all done.
    • As for the helpful message, added that one as well.

    As this is my first ever kata, the issues were inevitable. Thanks for your suggestions.
  • Custom User Avatar

    The whole "formatting the answer" part seems completely unnecessary for a mathematics kata.

    You want to return a formula without the basic math notation? What are you, living in the XVI century, still writing is equal to instead of =? It is necessary to make the output nice and clean, which is what mathematicians, usually, target.


    What’s wrong with just returning a sequence of triples, like [(2, 3, 4), (-1, 1, 1)] to represent 2 sin(x)^3 cos(x)^4 - sin(x) cos(x)?

    Actually yeah. Screw the system, that we've been adapted to for centuries. Let me write it in my notebook as cos(2x) = [(2, 2, 0), (-1, 0, 0)].

    You can't just leave it that way 'cause, for primarily mathematicians, this is very confusing. With your logic, for example, this kata doesn't deserve anything over 6 kyu (though I gotta admit, that it is overranked).


    I'm going to be completely honest here, I still can't solve this kata because of the issues with my implementation of Chebyshev's formula. However, I don't blame the kata itself for being that way. It's way better for me to analyze my outputs in the form of - 1 - 8 cos(x)^2 + 8 cos(x)^4 rather than [(-1, 0, 0), (-8, 2, 0), (8, 4, 0)] and I'm sure the majority of people would relate to that.

  • Custom User Avatar

    Moreover, there are less than 81 valid outputs, this makes the problem worse.

  • Custom User Avatar

    Is this for Python, I don't see such logs?

  • Custom User Avatar

    Sorry, I misunderstood your first post. I thought you were saying the author should add a warning to the description that warns users not to print every input. I see now that you meant that the tests should not output the full contents of very large arrays.

  • Custom User Avatar

    There are tons of kata which pass large arrays as inputs, are you saying this warning should be added to all of them?

  • Custom User Avatar
  • Custom User Avatar

    thanks

  • Custom User Avatar
  • Custom User Avatar

    it's in python now! i'm looking forward to seeing ur solution xd

  • Custom User Avatar

    You know what else is free too? --> Authoring katas on CW in any spoken language of your choice (The rules prohibit this but not the system ^^)

  • Custom User Avatar
  • Custom User Avatar

    I respectfully disagree that this makes the Kata worthless and unsalvageable. What's wrong with authoring a Kata which strikes some "middle ground" between your typical beginner Fibonacci Kata and some ultimate generalized version of a Fibonacci Kata understood mostly by math majors and postgraduates?

    By this logic I can author a Kata on the "theory of theories" in mathematics and that would make pretty much every other existing mathematics Kata on this site a duplicate ;-)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...