Ad
  • Default User Avatar

    I have the same problem.
    my function is success work.
    what can I do?
    I need some hink..

  • Custom User Avatar

    Anyone with common sense (read: 28k people who solved the kata) can understand what is "lowest positive number" without problems.

    You probably should check your common sense.

  • Custom User Avatar

    "Read again CAREFULLY the description"

    The description asks for the sum of the lowest positive numbers in the array. But, what is a lowest positive number in an array? I know the minimum of such numbers, but there exist many different ways to order numbers, and thus 'lowest' is not clear.

    So, does this kata have a solution if the phrase "lowest positive number" is ambiguous?

  • Default User Avatar

    Got it ! thanks @Avanta! ill make sure i follow each instruction next time haha

  • Default User Avatar

    Carefully read the last line of the description :P

  • Default User Avatar

    the answer is 67. I dont understand why they'd skip the smallest number and move on to the next 2. There is nothing besdies not modifying the original array and returning only positive numbers. In this case theyre all positive and the array hasnt been altered. im so confused

  • Custom User Avatar

    If you don't know already, Array.prototype.splice mutates the original array.

  • Custom User Avatar

    Which version?

    Also, no, sorting shouldn't be required for this kata.

  • Custom User Avatar

    Please clearly specify the issue or nobody knows what's the actual issue :(

  • Custom User Avatar

    Standard and best practice is not Array.from but Array.slice.

    Also, FYI, Array.from is quite slow.

  • Custom User Avatar

    Also, there are method to copy the whole object.

    And also, that's not actually an issue.

  • Default User Avatar

    Now, that COULD look like an issue, yes. But considering that almost 12000 guys (or girls) passed the thing, I doubt "strongly" that the kata has an issue.

    Still no issue, actually. Read again CAREFULLY the description, you missed something (and I mean it. I could even tell you what's your problem, I think. But considering it's in the description...).

  • Default User Avatar

    [ 1064, 46, 21, 50, 78 ]
    Expected: 96, instead got: 67
    why

  • Default User Avatar

    No issue here, as far as I can see. That's your code that is wrong, not the kata itself.

    Issues are not for this type of problem

  • Default User Avatar

    Expected: 98, instead got: 51
    Expected: 125, instead got: 45
    Expected: 111, instead got: 46
    Expected: 180, instead got: 174
    Expected: 100, instead got: 38
    Expected: 136, instead got: 54
    Expected: 46, instead got: 36
    Expected: 81, instead got: 27
    Expected: 40, instead got: 32
    Expected: 114, instead got: 47
    Expected: 86, instead got: 27
    Expected: 127, instead got: 71
    Expected: 65, instead got: 45
    Expected: 102, instead got: 74
    Expected: 36, instead got: 21
    Expected: 179, instead got: 156
    Expected: 153, instead got: 75
    Expected: 90, instead got: 71
    Expected: 104, instead got: 54
    Expected: 155, instead got: 82
    Expected: 115, instead got: 78
    Expected: 114, instead got: 33
    Expected: 68, instead got: 50
    Expected: 81, instead got: 51
    Expected: 121, instead got: 111
    Expected: 146, instead got: 117
    Expected: 20, instead got: 18
    Expected: 166, instead got: 120
    Expected: 92, instead got: 57
    Expected: 110, instead got: 54
    Expected: 9, instead got: 1
    Expected: 129, instead got: 96
    Expected: 109, instead got: 84
    Expected: 67, instead got: 19
    Expected: 122, instead got: 75
    Expected: 86, instead got: 40
    Expected: 102, instead got: 47
    Expected: 128, instead got: 90
    Expected: 112, instead got: 91
    Expected: 156, instead got: 92
    Expected: 64, instead got: 34
    Expected: 136, instead got: 101
    Expected: 96, instead got: 76
    Expected: 29, instead got: 10
    Expected: 79, instead got: 33
    Expected: 61, instead got: 42
    Expected: 110, instead got: 40
    Expected: 93, instead got: 48
    Expected: 69, instead got: 48
    Expected: 108, instead got: 68
    Expected: 70, instead got: 14
    Expected: 106, instead got: 64
    Expected: 158, instead got: 77
    Expected: 43, instead got: 37
    Expected: 138, instead got: 80
    Expected: 80, instead got: 57
    Expected: 73, instead got: 48
    Expected: 112, instead got: 96
    Expected: 148, instead got: 90
    Expected: 138, instead got: 84
    Expected: 65, instead got: 20
    Expected: 101, instead got: 57
    Expected: 143, instead got: 106
    Expected: 173, instead got: 112
    Expected: 113, instead got: 104
    Expected: 113, instead got: 81
    Expected: 51, instead got: 12
    Expected: 74, instead got: 54
    Expected: 72, instead got: 20
    Expected: 102, instead got: 45
    Expected: 93, instead got: 68
    Expected: 123, instead got: 85
    Expected: 74, instead got: 43
    Expected: 80, instead got: 23
    Expected: 91, instead got: 47
    Expected: 98, instead got: 86
    Expected: 160, instead got: 114
    Expected: 77, instead got: 56
    Expected: 113, instead got: 65
    Expected: 135, instead got: 60
    Expected: 99, instead got: 71
    Expected: 86, instead got: 29
    Expected: 161, instead got: 129
    Expected: 73, instead got: 21
    Expected: 62, instead got: 35
    Expected: 26, instead got: 12
    Expected: 126, instead got: 95
    Expected: 53, instead got: 19
    Expected: 73, instead got: 43
    Expected: 105, instead got: 53
    Expected: 159, instead got: 111
    Expected: 132, instead got: 75
    Expected: 128, instead got: 77
    Expected: 146, instead got: 116
    Expected: 96, instead got: 67
    Expected: 118, instead got: 63
    Expected: 111, instead got: 64
    Expected: 99, instead got: 54
    Expected: 36, instead got: 17
    Expected: 99, instead got: 46