Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- assertEquals(0, Waves.waves(new int[][] {
- {1, 1, 0, 0, 0},
- {1, 1, 0, 0, 0},
- {1, 0, 0, 0, 0},
- {1, 0, 0, 1, 1},
- {1, 0, 0, 1, 0},
- }));
- assertEquals(1, Waves.waves(new int[][] { { 1 }, }));
- assertEquals(1, Waves.waves(new int[][] {
- {1, 1, 1, 1, 1},
- {1, 0, 0, 0, 1},
- {1, 0, 0, 0, 1},
- {1, 0, 0, 1, 1},
- {1, 1, 1, 1, 0},
- }));
- assertEquals(2, Waves.waves(new int[][] {
- {1, 1, 0, 1, 1},
- {1, 1, 0, 1, 1},
- {0, 0, 0, 0, 0},
- {1, 1, 0, 1, 1},
- {1, 1, 0, 1, 0},
- }));
- assertEquals(1, Waves.waves(new int[][] {
- {1, 1, 0, 1, 1},
- {1, 1, 0, 1, 1},
- {0, 0, 0, 0, 0},
- {0, 0, 0, 1, 1},
- {0, 0, 0, 1, 0},
- }));
- assertEquals(0, Waves.waves(new int[][] {
- {1, 1, 1, 1, 1},
- {1, 1, 0, 0, 0},
- {0, 0, 0, 0, 0},
- {1, 0, 0, 1, 1},
- {0, 0, 0, 1, 0},
- }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement