3 ms·
Your "every k steps" operation executes N / k times, which isn't O(k) so I don't think it meets the requirements given.
by caf 17y ago
Your "every k steps" operation executes N / k times, which isn't O(k) so I don't think it meets the requirements given.