Algorithm/src/test/java/dynamic_programming/MaxProfit6Test.java

17 lines
359 B
Java

package dynamic_programming;
import org.junit.Test;
import static org.junit.Assert.*;
public class MaxProfit6Test {
@Test
public void maxProfit() {
int[]prices = {1,3,7,5,10,3};
int fee = 3;
MaxProfit6 maxProfit6 = new MaxProfit6();
int res=maxProfit6.maxProfit(prices,fee);
System.out.println(res);
}
}