Recursion

AP Computer Science A· difficulty 4/5

Iterative sum 1..n vs recursive sum produces the same result?

  • A

    Never

  • B

    Recursion is wrong

  • C

    Always

    check_circle
  • D

    Sometimes

Explanation

Both implement the same mathematical sum.

Want 10 more like this — adaptive to your weak spots?

Related questions