CoolFace
Datasetpublic

TheRealSamuel/LeetCodeProblem

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes561downloads
Main.java26 linesDownload Raw Back to java_tests
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(5, lengthOfLIS(new ArrayList<>(Arrays.asList(4,2,1,4,3,4,5,8,15)), 3));15}16@Test17public void test2() {18    assertEquals(4, lengthOfLIS(new ArrayList<>(Arrays.asList(7,4,5,1,8,12,4,7)), 5));19}20@Test21public void test3() {22    assertEquals(1, lengthOfLIS(new ArrayList<>(Arrays.asList(1,5)), 1));23}24 25}26