![]() |
|
#1
|
|||
|
|||
"Particular" Recursive Sum in arrayHello,
I have this problem: Given an array, his lenght and a numer (sum), in output the alghoritm must return all the way to obtain that sum. For example: 8, 11, 8, 7, 7, 6, 5, 4, 3, 2, 2, 1, 1 (where the first 8 is the sum to obtain and 11 is the number of the elements). Output: 8 7+1 6+2 5+3 5+2+1 4+3+1 4+2+2 4+2+1+1 3+2+2+1 The algorithm must be recursive... Any idea?? Thank's... |
|||
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| where is the problem and can you fix it (php) | oggie | MySQL / PHP Forum | 8 | 14-Apr-2008 16:08 |
| Getting a line error in register | oggie | MySQL / PHP Forum | 5 | 13-Apr-2008 17:16 |
| What is an array? | Howard_L | C Programming Language | 3 | 05-Oct-2007 06:11 |
| How to sort in C++ alphabetically | wilen | C++ Forum | 5 | 20-Apr-2007 15:43 |
| Need help deleting the last element in the array | headphone69 | C++ Forum | 2 | 15-Mar-2006 20:31 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The