Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move the { if (i == size - 1) cout << "true" << endl; } out of the 'for' loop. There is no need to judge if (i == size - 1) every time.
- Loading branch information