The total amount of work this bottom version is doing is proportional to the length of the list, whereas the top version is doing a total amount of work proportional to the length of the list squared. 