If McDonalds were run like a software company, one out of every hundred Big Macs would give you food poisoning, and the response would be, ‘We’re sorry, here’s a coupon for two more.’ “ Mark Minasi

Three sum from array

Language Java | Level Intermediate | Category Data structure | September 9, 2015 10:24 am


Data structure Description

Write a program to give three sums from the array.


Output

   					 

List of items form array: [-1, 0, 1, 2, -1, -4]
Sum of two items '0' : [[-1, -1, 2], [-1, 0, 1]]

				    

Comments


No comments available!

Please login to add comments.