URL: https://go.dev/doc/effective_go#interfaces
The method (Sequence).String is mistakenly said to have a quadratic time complexity but it's actually linear, or O(N).
Relevant quotes:
Loop is O(N²); will fix that in next example.
and
It also has complexity O(N²), which is poor.
URL: https://go.dev/doc/effective_go#interfaces
The method
(Sequence).Stringis mistakenly said to have a quadratic time complexity but it's actually linear, or O(N).Relevant quotes:
and