Index Ai Academy
Glossary · Phase 7 · Software engineering

Big O

Also written: Big O notation

A way to describe how a program's work grows as its input grows, such as O(n) for one loop or O(n²) for a loop inside a loop.

Try it now

Slide to a million: O(n²) takes about 11 days at that speed, and O(n log n) about 20 seconds.

Learn it properly

Algorithm complexity · Count the work code does, and see why some programs stop scaling. About 30 minutes.

Create a free account See what's in the lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write