Skip to content

Commit

Permalink
Update next_largest_element.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kashishgoel9 authored Oct 30, 2020
1 parent 950767b commit 9e9048e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next_largest_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int main()
cin>>arr[i];
}

for( i=0;i<n;i++)
for( i=0;i<n-1;i++)
{ s=-1;
for(j=i+1;j<n;j++)
{
Expand Down

0 comments on commit 9e9048e

Please sign in to comment.