TheRealSamuel/LeetCodeProblem
0561
1 2import static org.junit.jupiter.api.Assertions.*;3import org.junit.jupiter.api.Test;4import java.util.List;5import java.util.Arrays;6import java.util.ArrayList;7public class Main {8 //Program start9 10 //Program end11 12 @Test13public void test1() {14 assertEquals(3, longestNiceSubarray(new ArrayList<>(Arrays.asList(1,3,8,48,10))));15}16@Test17public void test2() {18 assertEquals(1, longestNiceSubarray(new ArrayList<>(Arrays.asList(3,1,5,11,13))));19}20 21}22 