Totally confused on time complexities.

Printable View