(int i)
| 47 | } |
| 48 | |
| 49 | public static int getNextSlow(int i) { |
| 50 | if (!hasValidNext(i)) { |
| 51 | return -1; |
| 52 | } |
| 53 | int num_ones = countOnes(i); |
| 54 | i++; |
| 55 | while (countOnes(i) != num_ones) { |
| 56 | i++; |
| 57 | } |
| 58 | return i; |
| 59 | } |
| 60 | |
| 61 | public static int getPrevSlow(int i) { |
| 62 | if (!hasValidPrev(i)) { |
no test coverage detected