Skip to content

Instantly share code, notes, and snippets.

@roopunk
Created February 14, 2019 05:19
Show Gist options
  • Save roopunk/92c9d01c0093be54f687d92351ab4444 to your computer and use it in GitHub Desktop.
Save roopunk/92c9d01c0093be54f687d92351ab4444 to your computer and use it in GitHub Desktop.
DTU assessment. CS Q1
int j = 0;
for(int i=0;i<n; ++i){
while(j<n && arr[i]<arr[j]) {
j++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment