FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Algo needed!

 


mayank_abhishek
Hi!

Can anyone help me with an algo to:

Find exactly K integers from a given array of N integers, where the sum of the K integers is equal to M. No integer can be chosen twice, all integers in the array are different.

I particularly want an algo for K = 3, which has an complexity O(N^2).

Please help!

TIA!
Related topics

Friday evening, I will prove guns are not needed in todays
Un Español Algo
Para no creer!!! Un hombre se cura del sida sin medicinas
Mu Online
[help]¿Alguien aqui ha usado frih$ para algo?

Projects VS Exams
[games]Los videojuegos : algo más que un entretenimiento.
Why this code should be needed?
[var]le tienes miedo a la muerte?
Logos Needed !

PHP Script needed
HTML Template needed
Get 100 frih$ HERE (sig needed asap)
Background Needed - 25 frih$
[Var] Escribamos algo util
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.