Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhaveshmunot1/6662a51e4c5e76853b470b7e0cd8d61f to your computer and use it in GitHub Desktop.
Save bhaveshmunot1/6662a51e4c5e76853b470b7e0cd8d61f to your computer and use it in GitHub Desktop.
Aggregate Analysis Example
int start = 0; // 1
int end = 0; // 1
while (end <= n-1) { // n times
if ( ... ) { // 1
while (start <= end && nums[start] < nums[end]) { // ??
...
start++; // 1
}
}
end++; // 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment