Syed's Blog

1 post · blog home · terminal version · RSS · all tags

Big-O Notation at the Grocery Store

· coding

O(1), O(log n), O(n) and O(n²), explained with shopping trips, queues and one very inefficient way to find the eggs.