Which of the following methods can be used to find the sum of digits of a number?
(c) Greedy algorithm
(d) Both recursion and iteration
This question was posed to me in final exam.
My enquiry is from Sum of Digits of a Number using Recursion in chapter Recursion of Data Structures & Algorithms II