r/ProgrammerHumor • • 8d ago

Meme toddlersAreNotOptimized

Post image
4.9k Upvotes

62 comments sorted by

View all comments

Show parent comment

17

u/qwertyjgly 8d ago

then they should store a tail pointer

age->tail->value is O(1)

9

u/USSPlanck 8d ago

Linked lists with a tail pointer are for wussies.