Results 1 to 2 of 2
  1. #1
    asilvester635 is offline Member
    Join Date
    Dec 2015
    Posts
    14
    Rep Power
    0

    Default The recursion and iteration debate

    I've read from various forums and it's no one really has a definite answer to this statement

    Statement: "Recursion provides for a more elegant and quicker solution for most problems." This is I think comparing recursion to iteration.

    What is your opinion on this? TRUE OR FALSE?

    CROSS POST LINK: The recursion and iteration debate (Beginning Java forum at JavaRanch)

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,991
    Rep Power
    8

    Default Re: The recursion and iteration debate

    Reason you don't read about a definitive statement is because there is none. This is like saying: "a hammer provides for a more elegant and quicker solution for most (DYI) problems". I am pretty sure I can't use a hammer in 95% of my DYI jobs. With recursion it's probably even less. Just like design patterns, you use one because you CAN use one, not because you WANT to use one.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Word Tree debate and runtime
    By t014y in forum Advanced Java
    Replies: 0
    Last Post: 07-29-2013, 04:58 PM
  2. Recursion to Iteration exponents Help
    By williamsb14 in forum New To Java
    Replies: 1
    Last Post: 02-14-2013, 09:49 AM
  3. Recursion to Iteration, and Vice Versa
    By penguinCoder in forum New To Java
    Replies: 0
    Last Post: 02-13-2013, 10:57 PM
  4. Iteration to Recursion
    By fam2315 in forum New To Java
    Replies: 7
    Last Post: 06-22-2011, 02:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •