Skip to content

Instantly share code, notes, and snippets.

@AnasAboreeda
Created January 23, 2022 08:40
Show Gist options
  • Save AnasAboreeda/b07660f5a838c6c409bebd4a936738a0 to your computer and use it in GitHub Desktop.
Save AnasAboreeda/b07660f5a838c6c409bebd4a936738a0 to your computer and use it in GitHub Desktop.
i = //constant
n = //constant
k = //constant
while (i < n){
i*=k;
// 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