Algorithm/src/test/java/dynamic_programming/LastStoneWeightIITest.java
2025-04-13 14:09:25 +08:00

16 lines
366 B
Java

package dynamic_programming;
import org.junit.Test;
import static org.junit.Assert.*;
public class LastStoneWeightIITest {
@Test
public void lastStoneWeightII() {
LastStoneWeightII solution = new LastStoneWeightII();
int[]stones = {2,7,4,1,8,1};
int res=solution.lastStoneWeightII(stones);
System.out.println(res);
}
}