Ad
  • Custom User Avatar

    It will convert your string to float or integer automatically. This is helpful if your not sure what sub-type of Numbers you are expecting.

  • 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

  • Custom User Avatar

    Thank you for the help. Sorry about the spoiler.

  • Custom User Avatar

    (manual notification, see above)

    ps: spoiler flag, pls

  • 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

  • Custom User Avatar

    I'm sorry about that.

  • Custom User Avatar

    Not a kata issue. Issues are not for incorrect code. Sorry!

  • Custom User Avatar

    I'm new to Julia, so my issue may just be something wrong one my side as far as my code goes. I attempted submitting a one-line piece function within the class, in the location our code was meant to go. It passed all of the tests, but, there was a (thingo)

    Here is the code:

    module Same
        export comp
    
        comp(array1, array2) = sort(array2) == map(x -> x^2, sort(broadcast(abs, array1)))
    end
    

    Here is the error:

    ERROR: LoadError: LoadError: MethodError: no method matching abs(::Nothing)
    Closest candidates are:
    

    and the error continues for a couple dozen lines that I thought would be considered spam. I can include it if someone wishes.

  • Custom User Avatar

    I suppose I may have been one of a minority to encounter the issue due to my style of code. And yes, I was using python. I should've specified.

  • Custom User Avatar

    I don't understand what you mean and want. I suppose your language is Python and I can see that 482 guys passed the Python kata so I don't think it is an issue.

  • Custom User Avatar

    I only had an issue with numbers of very large scales like 1e-05 or 1e-06. These numbers, when used as a denominator for 1, weren't written out as 100000 or 1000000, but were instead 100001 or 1000001.

    I'd suggest adding something to the program which deals with this issue that large floats often get when large enough. Either minusing 1, addressing the issue in the description of the Kata or rounding of some sort.