class Solution {
public ListNode removeNodes(ListNode head) {
if (head == null) return null;
head.next = removeNodes(head.next);
if (head.next != null && head.val < head.next.val) {
return head.next;
} else {
return head;
}
}
}
淦!今天玩嗨了赶紧洗洗睡!
不过我DT是真的帅啊