Download ant_on_the_boundary/java_tests/Main.java from FPEvalRepoPublic/LeetCodeProblem: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/datasets/FPEvalRepoPublic/LeetCodeProblem/resolve/main/ant_on_the_boundary/java_tests/Main.java
- Command line
-
hf download hf://datasets/FPEvalRepoPublic/LeetCodeProblem/ant_on_the_boundary/java_tests/Main.java
-
curl -L -o Main.java https://huggingface.co/datasets/FPEvalRepoPublic/LeetCodeProblem/resolve/main/ant_on_the_boundary/java_tests/Main.java
398 Bytes
| import static org.junit.jupiter.api.Assertions.*; | |
| import org.junit.jupiter.api.Test; | |
| import java.util.List; | |
| import java.util.Arrays; | |
| public class Main { | |
| //Program start | |
| //Program end | |
| public void test1() { | |
| assertEquals(1, returnToBoundaryCount(Arrays.asList(2,3,-5))); | |
| } | |
| public void test2() { | |
| assertEquals(0, returnToBoundaryCount(Arrays.asList(3,2,-3,-4))); | |
| } | |
| } | |