Skip to content

Instantly share code, notes, and snippets.

@AnasAboreeda
Created January 23, 2022 08:36
Show Gist options
  • Save AnasAboreeda/3a0c382cc9fd76068797a13a37b426ac to your computer and use it in GitHub Desktop.
Save AnasAboreeda/3a0c382cc9fd76068797a13a37b426ac to your computer and use it in GitHub Desktop.
for (int i=0; i<n; i++){
i*=2;
for (int j=0; j<i; j++){
// Statement(s) that take(s) constant time
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment