Jun 12, 2024
O(some_function_of_input_size) e.g., O(n).n times, it's O(n), for a nested loop running n*n times, it's O(n^2).n times, and the inner loop runs n times, resulting in O(n^2).n times results in O(n).O(some_function). E.g., an array of size n uses O(n) space.10^8 operations per second, so design algorithms accordingly.