3 ms·
> EDIT: The solution is actually incorrect so this is now semantics. Interesting use of "semantics". The question of "how fast does this algorithm run?" is to
by thaumasiotes 7y ago
> EDIT: The solution is actually incorrect so this is now semantics.
Interesting use of "semantics".
The question of "how fast does this algorithm run?" is totally independent from the question of "what does this algorithm do?"; the second one is semantic but you're discussing the first here.
- MaximumYComb 7y agoThe algorithm I described was O(n), you said it was O(3). I'm assuming this happened because my algorithm was actually an incorrect solution but you subconsciously added in steps to make it a correct algorithm which changed its complexity. Hence it's semantics because we seem to be discussing two different algorithms.