摘要: 原题链接在这里:https://leetcode.com/problems/reverse-linked-list-ii/ 题目: Reverse a linked list from position m to n. Do it in-place and in one-pass. For exam 阅读全文
posted @ 2015-08-22 05:20 Dylan_Java_NYC 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/reverse-linked-list/ 题目: Reverse a singly linked list. 题解: Iteration 方法: 生成tail = head, cur = tail, while loop 的 阅读全文
posted @ 2015-08-22 04:15 Dylan_Java_NYC 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/evaluate-reverse-polish-notation/ 题目: Evaluate the value of an arithmetic expression in Reverse Polish Notation. 阅读全文
posted @ 2015-08-22 01:10 Dylan_Java_NYC 阅读(172) 评论(0) 推荐(0) 编辑