What is runtime complexity of the list’s built-in .append() method?

Advertisement

  • O(1), also called constant time
  • O(log n), also called logarithmic time
  • O(n^2), also called quadratic time
  • O(n), also called linear time
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend