Skip to content

Commit 4cc6a64

Browse files
committed
I think it is O(n) in the worst situation
1 parent fa9619f commit 4cc6a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/chapLinearList.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ \subsubsection{分析}
234234
\subsubsection{代码}
235235
\begin{Code}
236236
// LeetCode, Search in Rotated Sorted Array II
237-
// 时间复杂度O(log n),空间复杂度O(1)
237+
// 时间复杂度O(n),空间复杂度O(1)
238238
class Solution {
239239
public:
240240
bool search(int A[], int n, int target) {

0 commit comments

Comments
 (0)