This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Problem 1 | |
* | |
* Write three functions that compute the sum of the numbers in a given list using a for-loop, a while-loop, and recursion. | |
*/ | |
/** | |
* Sum a integer list using `for`. | |
* @param list array list to sum | |
* @return the sum. |