From b2cab009f05fc2e4bdcad85ca9c6211209725637 Mon Sep 17 00:00:00 2001 From: jenilparsania <151541448+jenilparsania@users.noreply.github.com> Date: Sat, 14 Sep 2024 19:48:24 -0300 Subject: [PATCH] added comments --- 5. Lists/Easy/9. Linear Seach/optimal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/5. Lists/Easy/9. Linear Seach/optimal.py b/5. Lists/Easy/9. Linear Seach/optimal.py index bf2f3c4..5009086 100644 --- a/5. Lists/Easy/9. Linear Seach/optimal.py +++ b/5. Lists/Easy/9. Linear Seach/optimal.py @@ -1,6 +1,9 @@ #This is a linear search code with time complexity o(n) # :') +# doing this as of the part of the open src contribution + + def linearSearch(n: int, num: int, arr: [int]) -> int: for i in range(0, len(arr)): if arr[i] == num: