In this problem it's simply to find out number of ones in a string and then sum from 1 to that number. but this logic is giving wrong output on submitting...Anyone has idea why this is going wrong when it's working for the test cases given..?? asked 06 Jul '14, 12:18

The question has been closed for the following reason "Onging Contest!!" by kunal361 06 Jul '14, 16:11
Answer is hidden because of too many downvotes. Click here to view.
answered 06 Jul '14, 13:41

Answer is hidden because of too many downvotes. Click here to view.
answered 06 Jul '14, 13:51
