Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Find Max/16123004.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

n = len(l)
curr_max = 0
for i in n:
for i in range(n):
# TODO Fill Code here
if l[i] > curr_max:
curr_max = l[i]
Expand Down
11 changes: 8 additions & 3 deletions Linear Search/16123004.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
k = 4
l = [ 2,3,4,5,6,8]

flag=0
n = len(l)
for i in n:
# TODO Fill Code here
for i in range(n):
if l[i] == k:
flag=1
print("found")
break
if(flag==0):
print("the number is not in the list")