Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. for(int i = 0; i != m; ++i) {
  2. if(some_condition()) {
  3. for(int k = i + 1; k != m; ++k) {
  4. // use k but not i
  5. }
  6. break; // exit other loop
  7. }
  8. }
  9.  
  10. // O(m^2) or O(m)?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement