People think that computer science is the art of geniuses but the actual reality is the opposite, just many people doing things that build on each other, like a wall of mini stones. Donald Knuth

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.