Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... Read More
posted @ 2014-10-25 21:16 chengcy Views(129) Comments(0) Diggs(0)
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen... Read More
posted @ 2014-10-25 20:38 chengcy Views(181) Comments(0) Diggs(0)
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi... Read More
posted @ 2014-10-25 14:31 chengcy Views(99) Comments(0) Diggs(0)