Saturday, July 9, 2011

Find the minimum positive sum in an array

You are given an array of integers A and you have to find out the minimum positive sum of array(not necessarily continuous).

PS: I have a solution but not sure it is optimal

1 comment:

  1. Interesting problem!
    Please post the logic of your solution. If not, post a hint. Thank you!

    ReplyDelete