DEV Community

Discussion on: The Big O notation - O(n)

Collapse
 
adamklepacz profile image
Adam Klepacz

So Pawel what is the result of big O notation, if looking for the library card of Adam Smith? :D

Collapse
 
kendyl93 profile image
Paweł • Edited

Well, it depends on which algorithm you would chose. You can find the card with O(n) but you also can solve the same problem with the O(log2(n)) complexity.