1. Engineering
  2. Computer Science
  3. a consider an algorithm for determining the size of some...

Question: a consider an algorithm for determining the size of some...

Question details

a) Consider an algorithm for determining the size of some nested folders/les recursively. (Imagine right clicking an item on your desktop and viewing it's size.) What would be the base case(s) for this problem?

b) Consider the problem of reversing letters of a string. Would it be more appropriate to use recursion or iteration? Justify your answer. [8 points] Short Answer:

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution