0

i need to know what is the idea of implementing a predicate with accumulator and here is an example of my question:

enter image description here

lurker
  • 56,987
  • 9
  • 69
  • 103
user3502598
  • 63
  • 1
  • 5
  • 1
    An accumulator allows you to do bottom-up recursion instead of top-down. You build the answer as you go along, (you pass the first part of the solution to your recursive call that will build on it, instead of relying on the recursive call you return you the finished product). – C.B. Aug 15 '14 at 17:20
  • http://stackoverflow.com/q/19944969/849891 – Will Ness Aug 20 '14 at 09:29

0 Answers0