Skip to content

Instantly share code, notes, and snippets.

@ashkrit
Created April 8, 2016 15:16
Show Gist options
  • Select an option

  • Save ashkrit/aca73d1c1549d67d71c7903f6acb6906 to your computer and use it in GitHub Desktop.

Select an option

Save ashkrit/aca73d1c1549d67d71c7903f6acb6906 to your computer and use it in GitHub Desktop.
static int bruteRotationPoint(char[] values) {
for (int index = 1; index < values.length; index++) {
if (values[index] < values[index - 1]) {
return index;
}
}
return -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment