Update bubble-sort.cpp

pull/1195/head
Rohan Janardhan 2023-07-04 22:13:00 +05:30 committed by GitHub
parent cd7e1af3fe
commit c36bc74fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ int main()
{
swap = false;
for (int j= 0; j< n-1; j++)
{ //comparing adjecent elements of array
{ //comparing adjacent elements of array
if (arr[j]>arr[j+1])
{ // swapping array elements
temp = arr[j];