CoolFace
Datasetpublic

TheRealSamuel/LeetCodeProblem

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes561downloads
Main.java22 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(new ArrayList<>(Arrays.asList(0,2)), getGoodIndices(new ArrayList<>(Arrays.asList(new ArrayList<>(Arrays.asList(2,3,3,10)),new ArrayList<>(Arrays.asList(3,3,3,1)),new ArrayList<>(Arrays.asList(6,1,1,4)))), 2));15}16@Test17public void test2() {18    assertEquals(new ArrayList<>(), getGoodIndices(new ArrayList<>(Arrays.asList(new ArrayList<>(Arrays.asList(39,3,1000,1000)))), 17));19}20 21}22