Skip to content

Commit 410510e

Browse files
Update searches/linear_search.nim
Co-authored-by: dlesnoff <54949944+dlesnoff@users.noreply.github.com>
1 parent 209bc48 commit 410510e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searches/linear_search.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## The search ends when the element is located or when the end of the array is reached.
88
## https://en.wikipedia.org/wiki/Linear_search
99
##
10-
## Time Complexity: O(n)
10+
## Time Complexity: O(n) where n is the length of the array.
1111
## Space Complexity in for-loop linear search: O(1)
1212
## Space Complexity in recursive linear search: O(n)
1313
## Notice that recursive algorithms are nice to write and provide elegant implementations,

0 commit comments

Comments
 (0)