Yzxsysu
Results
3
comments of
Yzxsysu
想问问为什么先put再remove与remove后再put结果会不一样 valToIndex.put(last, index); valToIndex.remove(val);
```java class Solution { public boolean isPalindrome(ListNode head) { ListNode pre, cur, nxt; pre = null; cur = nxt = head; while (cur != null){ nxt = cur.next; cur.next =...
304中的if (m == 0 || n == 0) return; 是相当于先判断输入的矩阵是否合法吗?