Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Big-O notation

A way of describing how an operation's work grows as the data grows, ignoring constant factors.

O(1) constant, O(log n) logarithmic, O(n) linear, O(n log n), O(n²) quadratic, where n is the number of elements.

Examples

  • ArrayList.get(i) is O(1); ArrayList.contains(x) is O(n).

Read the full section →