Example #1
0
 @Test
 public void shouldReturnfalseFor2_1_1_2_1() {
   int[] nums = {2, 1, 1, 2, 1};
   assertFalse(pts.canBalance(nums));
 }
Example #2
0
 @Test
 public void shouldReturnTrueFor1_1_1_2_1() {
   int[] nums = {1, 1, 1, 2, 1};
   assertTrue(pts.canBalance(nums));
 }