Re:Programming Without Variables
by dborg on Friday September 13, 2013 @08:41AM
(#6380038)
Actually you'd want to save it as (1 . (2 . (4 . (8 . NIL)))) since o/w you'd still get quadratic time complexity as you need to unpack your whole list when you add the next value.
(I'm unclear whether the array version should include the 1, since it is not "counted").