3 ms·
When N is fixed, all algorithms become O(1). That's why they appear the same. If you do these calculations by hand, the complexity will be more obvious because
by slavik81 7y ago
When N is fixed, all algorithms become O(1). That's why they appear the same.
If you do these calculations by hand, the complexity will be more obvious because each operation will be smaller.