Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我相信线性搜索和二分搜索的最坏情况渐近复杂度分别是 O(n) 和 O(lgn)。我对么?
对,那是正确的。您能找到触发这些运行时间的案例示例吗?