How efficient is my code?

← How efficient is my code?

Ashterix

docs: English JsonRpcBundle docs, REST and MCP Bundle sections, package cards

en/articles/from-tg/series/algorithm-complexity/README.md new file +22 −0

1 + # How efficient is my code?
2 +
3 + **Algorithmic complexity** is one of the fundamental measures of efficiency.
4 +
5 + This series of short articles walks through algorithmic complexity from the simplest to the most complex: for each one — what it means and a code example, so you can understand it in practice.
6 +
7 + Let's start with the simplest, yet very important one — O(1), or constant complexity.
8 +
9 + ## Parts of the series
10 +
11 + 1. [O(1) — constant complexity](/articles/from-tg/series/algorithm-complexity/o-1)
12 + 2. [O(n) — linear complexity](/articles/from-tg/series/algorithm-complexity/o-n)
13 + 3. [O(log n) — logarithmic complexity](/articles/from-tg/series/algorithm-complexity/o-log-n)
14 + 4. [O(n log n) — linearithmic complexity](/articles/from-tg/series/algorithm-complexity/o-n-log-n)
15 + 5. [O(n²) — quadratic complexity](/articles/from-tg/series/algorithm-complexity/o-n2)
16 + 6. [O(n³) — cubic complexity](/articles/from-tg/series/algorithm-complexity/o-n3)
17 + 7. [O(2ⁿ) — exponential complexity](/articles/from-tg/series/algorithm-complexity/o-2n)
18 + 8. [O(n!) — factorial complexity](/articles/from-tg/series/algorithm-complexity/o-n-factorial)
19 +
20 + ---
21 +
22 + *First published in Ukrainian in the Telegram channel [“Created to die”](https://t.me/php_while_true/18) on June 20, 2025.*