/**
* 测试
*/
public static void main(String[] args) throws Exception {
int a[] = { 4, 1, 5, 1, 3, 2, 1, 3, 1, 2, 3, 1, 1 };
System.out.println(getStepsResult(a, 1));
}
/**
* 自定义参数检查异常
*
* @author ZOUHENG
*/
private static class CheckParamException extends Exception {
private static final long serialVersionUID = -5470930382435803070L;
public CheckParamException(String message) {
super(message);
}
}
}