Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int j;
- for(int i=0; i<=n-1; i = i + j){
- for(j=i+1; j<=k; j++){
- //Constant Work
- //....
- }
- }
- //O(n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement