16 lines
366 B
Java
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);
|
|
}
|
|
} |