Created
April 8, 2016 15:16
-
-
Save ashkrit/aca73d1c1549d67d71c7903f6acb6906 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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