摘要:
1.Remove Nth Node From End of List (https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/) 刚看到题目的想法是使用两次遍历,第一次确定该链表的长度,再减去n,进行第二次遍历,从而删除对 阅读全文
摘要:
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right. Input Specification: Each input file contains one t 阅读全文
摘要:
题目内容: Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a g 阅读全文