Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding

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.