šŸŽ New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Programming Concepts Intermediate

What is Big O Notation?

A mathematical notation that describes the worst-case performance of an algorithm as input size grows.

Big O describes how an algorithm scales. O(1) is constant time (hash lookup). O(log n) is logarithmic (binary search). O(n) is linear (simple loop). O(n log n) is linearithmic (efficient sorting). O(n²) is quadratic (nested loops). O(2^n) is exponential.

Understanding Big O helps choose the right algorithm and data structure. For example, searching a sorted array with binary search O(log n) is vastly faster than linear search O(n) for large datasets.

Related Terms

Object-Oriented Programming (OOP)
A programming paradigm that organizes software design around objects containing data and behavior.
SOLID Principles Breakdown
Five object-oriented design principles that guide developers in creating maintainable, flexible, and scalable software systems.
Closure
A function that captures and retains access to variables from its enclosing scope, even after that scope has finished executing.
Design Pattern
A reusable solution template for commonly occurring problems in software design.
Version Control
A system that records changes to files over time, allowing you to recall specific versions, collaborate, and track history.
Refactoring
Restructuring existing code without changing its external behavior to improve readability, maintainability, and performance.
View All Programming Concepts Terms →