• + 0 comments

    Your code works like a charm. But still unable to understand the logic behind it.

    specially the last part.

    If I do sum of only posive numbers of array then it fails most of the cases. But I do through for loop which I think is doing the same task passes all test.