Ad
  • 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

    Thanks for your suggestion. I understand that the concepts in this Kata may be a subset of an existing 3 kyu Kata (which one?), but I disagree that this makes the Kata in its current form meaningless and devoid of value for the Codewars community. At the very least, considering that this Kata is not (yet?) shown to be an exact duplicate of some other existing Kata, it could serve as a stepping stone between GiacomoSorbi's Kata and the 3 kyu Kata you mentioned.

    As your comment is worded as a suggestion and the Kata does not clearly violate existing Kata authoring guidelines, I would kindly ask for the issue to be resolved and re-raised as a suggestion, thanks!

    P.S. check out this reply as well

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    Good point, I've added a relevant example in the Kata description and sample tests and mentioned that the digit should be returned "as an integer".

  • Custom User Avatar

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

  • Custom User Avatar

    I've bumped the number of random assertions up to 100 per category (small, larger, largest), feel free to inform me if more assertions are required :-)

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    I was able to pass the Attempt test suite in Rust without any issues. Please post your current solution, mark it as a spoiler and specify the input(s) causing your solution to fail so we may reproduce your issue and determine whether it is indeed a problem with the tests.

    Closing the issue since there's insufficient evidence it's related to the Kata itself.

  • Custom User Avatar

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

  • Custom User Avatar

    Many issues with this Kata:

    Description is vague and difficult to understand

    Example:

    Lego Bricks - 1 Cat Food - 2 Intercontinental Ballistic Missle - 4 A Single Piece Of Paper - 8 (The rest is 0)

    It's entirely unclear how these "values of elements" are derived from the input tuple alone. One could extrapolate and guess that the values of each element should be determined as increasing powers of 2 based on the index within the input tuple, but it's not explicitly specified which is not acceptable.

    Poor choice of data structures

    Tuples are good for data where the number of elements are pre-determined and fixed. They are not for data where the number of elements are variable and cannot be pre-determined - use a list instead.

    Broken tie-breaking logic in reference solution

    Python's built-in sorting functions are stable by default so input order should already be preserved - see my solution below for an example.

    On the other hand, the reference solution does not always preserve input order - it's difficult to present a concrete example given the way the inputs are structured for this Kata but it's possible to confirm this by printing a transformed view of the inputs and comparing the output of my solution from that of the reference solution.


    Please refer to Creating your first Kata for guidelines on authoring a good Kata.

  • Custom User Avatar

    Finally managed to solve this one in Rust, excellent Kata :-D

    I definitely over-engineered my solution though, defining DeltaIterator as a recursive type with Boxes and 'static lifetime annotations - not my proudest solve (-:

  • Custom User Avatar

    Please resolve the following issues with the Kata before re-publishing:

    • Separate the story from the actual Kata task so not everyone is forced to read the entire thing and attempt to extract useful information out of it
    • Kata task is still ambiguous - "length of the pixels that have withstood the test of time" is not well-defined since the array is jagged and rows may be of different length
    • "quivalent" --> "equivalent"
    • Fixed tests should cover edge cases such as when the first row isn't the longest row
    • Add an actual example in the Kata description (just use one of the existing fixed tests) and explain the process so the task is clearly defined

    Also, please refrain from "re-publishing" a retired Kata as-is in the future as that may result in the revocation of your Kata-authoring privileges.

  • Custom User Avatar

    [Rust] Random tests sometimes generate an empty vector vec![] which doesn't match the Kata description saying that an empty matrix is represented by vec![vec![]]

  • Loading more items...