Skip to content

Instantly share code, notes, and snippets.

@HimanshuMittal01
Last active May 13, 2022 04:30
Show Gist options
  • Save HimanshuMittal01/1d40c5f0df5f6f1f14bfd555371c7578 to your computer and use it in GitHub Desktop.
Save HimanshuMittal01/1d40c5f0df5f6f1f14bfd555371c7578 to your computer and use it in GitHub Desktop.
int log[MAXN+1];
log[1] = 0;
for (int i = 2; i <= MAXN; i++)
log[i] = log[i/2] + 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment