Search:

Type: Posts; User: GregBrannon

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    2,531

    Re: Recursion to Print and Count

    Agreed. Thanks for the optimization. It had occurred to me, but I was already overstepping the bounds a bit - except the OP was sooooo close.
  2. Replies
    5
    Views
    2,531

    Re: Recursion to Print and Count

    On one hand, you're very close. On the other hand, there are some things I would do differently:

    1. Some recusive methods return a value. This one doesn't need to.
    2. The base case should be...
  3. Replies
    5
    Views
    2,531

    Re: Recursion to Print and Count

    Why didn't you show that code that almost or partly worked? I don't see any recursion here, and what is the method evens()?
Results 1 to 3 of 3