Skip to content

Commit 9d38d68

Browse files
author
luzhipeng
committed
fix: typo
1 parent f3335a8 commit 9d38d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

14.longest-common-prefix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var longestCommonPrefix = function(strs) {
2121
// 时间复杂度O(m) 空间复杂度O(m * n)
2222

2323
// tag: 二分法
24-
// 时间复杂度 O(n*logm*logm) 空间复杂度O(1)
24+
// 时间复杂度 O(n*logm) 空间复杂度O(1)
2525
if (strs.length === 0) return "";
2626
if (strs.length === 1) return strs[0];
2727

0 commit comments

Comments
 (0)