0
/ 5.0
Write a function in Java called factorial()
that will take a positive integer as input and returns its factorial as output.
Score: 0 / 25.0
Write a function in Java called factorial()
that will take a positive integer as input and returns its factorial as output.
Given a non-negative int n
, return the sum of its digits recursively (no loops). Note that mod (%
) by 10 yields the rightmost digit (126...
Given a string, compute the number of times lowercase "hi" appears in the string. Make the countHi
be recursive.
The following method is a Selection Sort method. Within the method, there is an error on one line. You job is to find that line and fix...
Write a method quicksort that takes in an ArrayList of integers and returns them in ascending order, using a quicksort style of sorting....