8000 Update Linear Search.md · Gekk0r/Algorithms-Explanation@abb081a · GitHub
[go: up one dir, main page]

Skip to content

Commit abb081a

Browse files
authored
Update Linear Search.md
1 parent 9d11f77 commit abb081a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Search Algorithms/Linear Search.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ O(1)
2323

2424
#### Example
2525

26-
`arr = [1, 3, 9, 5, 0, 2]
27-
28-
target = 5
29-
Linear Search should return index 3 as 5 is on index 3
30-
31-
target = 6
32-
Linear Search should return -1 as 6 is not present in the array
33-
`
26+
`arr = [1, 3, 9, 5, 0, 2]`
27+
`target = 5 `
28+
`Linear Search should return index 3 as 5 is on index 3 `
29+
`target = 6 `
30+
`Linear Search should return -1 as 6 is not present in the array `
3431

3532
#### Code Implementation Links
3633

0 commit comments

Comments
 (0)
0