FAL 第12期 关系网络及其金融实战应用
// Method
public int getValue(int index) {
ListNode node = getNode(index);
if (node == null) {
throw new RuntimeException("The node for index is empty!");
}
return node.val;
}
public ListNode getNode(int index) {
checkIndexRange(index);
int currentIndex = 0;