摘要:
Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 题意: 给定一个链表,反转第m~n个节点。 反转链表的一般思路 Solution1: 1 阅读全文
摘要:
Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively 阅读全文