You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 1: set i = 0
Step 2: if i > n , go to step 7 // n = max size of an array
Step 3: if arr[i] = item , go to step 6 // item = founding value
Step 4: i = i + 1;
Step 5: go to step 2
Step 6: Print Item Found at Location arr[i]
Step 7: Print Item not Found
Step 8: Exit
Step 1: Repeat steps 2 and 3 for i = 0 to n-1 // n, max size of an array
Step 2: Set j = 0 to n-1-i
Step 3: if Array[j] > Array[j+1]
swap Array[j] and Array[j+1]
temp = Array[j]
Array[j] = Array[j+1]
Array[j+1] = temp
Step 4: Exit