Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i != m; ++i) {
- if(some_condition()) {
- for(int k = i + 1; k != m; ++k) {
- // use k but not i
- }
- break; // exit other loop
- }
- }
- // O(m^2) or O(m)?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement