4 ms·
Your code iterated more than once. Mine doesn't. Mine is O(N). This is one of the side effects of using all the functionality. On a positive note, your example
by gouranga 14y ago
Your code iterated more than once. Mine doesn't. Mine is O(N). This is one of the side effects of using all the functionality.
On a positive note, your example is very lisp-like.
- thomasz 14y ago> Your code iterated more than once. Uh... no. *edit The first element is iterated three times, the second two times and the rest once, making it O(n).