Can Anyone Solve it ?
his father bought 'n' pebbles.Joe wishes to arrange the pebbles in form of two piles.Joe wants the pebbles arranged in such a manner that difference between sum of the two piles separately must be minimum.
Joe's wish to arrange as two piles
Input:
First n refer no of pebbles his father boughtsecond input consist of n Integers.
Output:
Minimum difference between two piles.Sample Input:
6
2 8 3
4 6 7
2 8 3
4 6 7
No comments :
Post a Comment