mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 23:15:17 +08:00
@ -8,10 +8,9 @@ public class HowManyTimesRotatedTest {
|
||||
|
||||
@Test
|
||||
public void testHowManyTimesRotated() {
|
||||
int[] arr1 = {5, 1,2,3,4};
|
||||
int[] arr1 = {5, 1, 2, 3, 4};
|
||||
assertEquals(1, HowManyTimesRotated.rotated(arr1));
|
||||
int[] arr2 = {15,17,2,3,5};
|
||||
int[] arr2 = {15, 17, 2, 3, 5};
|
||||
assertEquals(2, HowManyTimesRotated.rotated(arr2));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user