Skip to content

Commit

Permalink
Update 1656B - Subtract Operation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SK-AHMD authored Nov 28, 2022
1 parent 84eaa26 commit e7cee57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solutions/1656B - Subtract Operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main() {
while(j<i && arr[i]-arr[j]>k) j++;
if(arr[i]-arr[j]==k) {flag = true; break;}
}
if(flag ==true) cout<<"YES\n";
if(flag) cout<<"YES\n";
else cout<<"NO\n";

}
Expand Down

0 comments on commit e7cee57

Please sign in to comment.