3 ms·
> Copying a 24-character string into a 25-byte zero-terminated buffer takes constant time Thats not constant time, thats linear/O(N) time.
by ssalazar 8y ago
> Copying a 24-character string into a 25-byte zero-terminated buffer takes constant time
Thats not constant time, thats linear/O(N) time.
- qznc 8y agoIt is constant because O(24) = O(1).