Timings

Some indicative timings for lists of 100000 items, repeated 100 times. Other list lengths give similar orderings.

  • First Solution (using map): 14.06 seconds

  • Second Solution (iteration): 9.41 seconds

  • Third Solution (using zip): 15.81 seconds

Not everything here is obvious.