Re: [algogeeks] Find a specific set of numbert

2014-04-20 Thread bujji jajala
Hi Varun, Are there any restrictions on k1, k2, k3 ... ? If not Just choose k_i = a_i i=1,2,..,n. :-) -Thanks Bujji On Sat, Mar 23, 2013 at 7:23 AM, Varun tewari.va...@gmail.com wrote: Hello all, I have this problem to solve, and seek your assistance. Program should be

[algogeeks] Find a specific set of numbert

2013-04-03 Thread Varun
Hello all, I have this problem to solve, and seek your assistance. Program should be feeded with following integer inputs. 1. n integers in ascending order (a1,a2,a3...an) 2 an integer K. We need to find K(k1,k2...kn) integers between [a1..an] both inclusive such that the sum of the absolute