Informal Code Analysis (Loop Tracing)

AP Computer Science A· difficulty 4/5

Adding O(n) and O(n²) gives

  • A

    O(n²)

    check_circle
  • B

    O(n + n²)

  • C

    O(n³)

  • D

    O(n)

Explanation

Big-O retains dominant term.

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

Related questions

AP Computer Science A · Informal Code Analysis (Loop Tracing) Practice Question | Acemy