Download beautiful_towers_i/java_tests/Main.java from FPEvalDataset/LeetCodeProblem: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/datasets/FPEvalDataset/LeetCodeProblem/resolve/refs%2Fpr%2F1/beautiful_towers_i/java_tests/Main.java
- Command line
-
hf download hf://datasets/FPEvalDataset/LeetCodeProblem@refs/pr/1/beautiful_towers_i/java_tests/Main.java
-
curl -L -o Main.java https://huggingface.co/datasets/FPEvalDataset/LeetCodeProblem/resolve/refs%2Fpr%2F1/beautiful_towers_i/java_tests/Main.java
502 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(13, maximumSumOfHeights(Arrays.asList(5,3,4,1,1))); | |
| } | |
| public void test2() { | |
| assertEquals(22, maximumSumOfHeights(Arrays.asList(6,5,3,9,2,7))); | |
| } | |
| public void test3() { | |
| assertEquals(18, maximumSumOfHeights(Arrays.asList(3,2,5,5,2,3))); | |
| } | |
| } | |