Ad
  • Default User Avatar
  • Custom User Avatar

    That's a fantastic solution!

    I often forget that one can make use of the associated functions for the type returned by a macro. Using .repeat on format! didn't come to my mind.

  • Default User Avatar

    Lots of guys passed the Rust kata so I am sure there is a problem in your code.
    Avoid to mutate the input; don't sort too soon; rather square elements of a instead of taking the square root of elements of b (you are introducing float approximations).
    Good luck and notice than downvoting others' answers doesnt help:-)

  • Custom User Avatar

    I coped response from console and this is clearly reproducible. My function return false but assertion in tests expect true.

  • Custom User Avatar

    Ok. I know that you tried some. I already spend two days fighting with this cata. Can you, please, answer on My question.

    36100 = 190 * 190 and there are NO 190 in the a array. Why attempt tests return true here?

  • Default User Avatar

    I tried some solutions and I saw no problems.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Default User Avatar

    Really sorry, English is not my "mother-tongue" but it is not useful to be unpleasant...
    I don't have any "ego". If you knew how old I am you could understand that.
    I care that others could learn otherwise I wouldn't have written as many translations.

    Moreover you downvote my posts to no avail since I could do the same with yours.

    PS: by the way the description was rewritten by another guy... but it seems that it is the same gibberish:-) I am waiting your proposals and your authored kata. Criticizing is easy, doing is less.

  • Custom User Avatar

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

  • Default User Avatar

    In the explanation it is said:

    a = [121, 144, 19, 161, 19, 144, 19, 11]  
    b = [121, 14641, 20736, 361, 25921, 361, 20736, 361]
    comp(a, b) returns true
    

    I think you wrongly read the description or maybe I didn't understand your post. You can note that 350 guys passed the Rust kata.

  • Custom User Avatar

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

  • Custom User Avatar

    Yet another bit of incomprehensible gibberish written by g964.

    Is there a codewars for the english language?

    "Eschew obfuscation, espouse elucidation" is ironic, not a template for how to talk to people.

  • Custom User Avatar

    This kata is badly written (for Rust).

    The problem description is overly complex and doesn't communicate the task effectively.

    The real test cases don't give any failure details and are therefore not helpful.