Algorithms, Java, Development, Coding, Computer Science.
numbers array had: n = 10 elements, our algorithm would execute: 10^2 + 10 = 100 + 10 instructions. If numbers array had: n = 100 elements, our algorithm would execute: 100^2 + 100 = 10 000 + 100 instructions. We can see that n starts to lose on significance when compared to n^2 as n grows. So we