彻底掌握大O符号
原文英文,约2200词,阅读约需8分钟。发表于: 。Introduction Recently I was doing a job interview to a position that I really wanted in a very cool company, and one of the steps was the dreaded code interview where we solve LeetCode problems...
本文介绍了大O时间复杂度的概念,分析了算法在输入规模增长时的运行时间,并通过示例解释了不同复杂度(如O(n)、O(1)、O(n^2))以帮助读者理解算法效率。作者希望通过总结复习提升面试表现。