Several of the solutions posted are making assumptions that are not in the original instructions. The instructions say that you will be given an array of integers, and you want to sum the two lowest positive numbers. The solutions seem to assume that no negative integers will be in the array, and do not test to see what the lowest POSITIVE integers are. If a negative integer is put into the array, a lot of these solutions would fail.
The instructions specifically state that the two lowest positive numbers should be added, but the tests are counting 0 as a valid number. Either the instructions or the tests should be changed to match.
Several of the solutions posted are making assumptions that are not in the original instructions. The instructions say that you will be given an array of integers, and you want to sum the two lowest positive numbers. The solutions seem to assume that no negative integers will be in the array, and do not test to see what the lowest POSITIVE integers are. If a negative integer is put into the array, a lot of these solutions would fail.
The instructions specifically state that the two lowest positive numbers should be added, but the tests are counting 0 as a valid number. Either the instructions or the tests should be changed to match.