Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
tynnp authored Jun 15, 2024
1 parent 275a3b5 commit 56f52b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main() {

int ans = sequentialSearch(arr, n, x);
if (ans != -1) {
for (int i = 0; i <= ans; i++)
for (int i = 0; i < n; i++)
if (arr[i] == arr[ans])
cout << i << " ";
} else cout << ans;
Expand Down

0 comments on commit 56f52b0

Please sign in to comment.