# 算法概述 ## 学习方法 - 三分学,七分练 - 坚持不懈 刷题,推荐 leetcode ## 算法性能分析 性能分析有两个维度: - 时间复杂度 - 空间复杂度 复杂度级别: - $$O(1)$$:常数 - $$O(log n)$$:对数 - $$O(n)$$:线性 - $$O(n^2)$$:平方 - $$O(n^3)$$:立方 - $$O(2^n)$$:指数 - $$O(n!)$$:阶乘 ![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/20200702071922.png)