Skip to content
This repository was archived by the owner on Oct 10, 2022. 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
File renamed without changes.
2 changes: 1 addition & 1 deletion Lees_algo.cpp → Algorithms/cpp/Lees_algo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bool isValid(int mat[][N], bool visited[][N], int row, int col)
void BFS(int mat[][N], int i, int j, int x, int y)// BFS algorithm
{

bool visited[M][N]
bool visited[M][N];
memset(visited, false, sizeof visited);
queue<Node> q;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions Searching/python/linear_search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def linear_search(arr, key):
found = False
for i in range(0,len(arr)):
if arr[i] == key:
print("Element Found at position {}".format(i+1))
found = True
if found == False:
print("Element NOT Found")


# Driver Code

arr = [2,4,5,6,7,2]
linear_search(arr,2)
linear_search(arr,10)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.