摘要: 标题:Remove Duplicates from Sorted Array II通过率:30.7%难度:中等ollow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given ... 阅读全文
posted @ 2015-03-12 22:40 pku_smile 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 标题:Flatten Binary Tree to Linked List通过率:28.7%难度:中等Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ ... 阅读全文
posted @ 2015-03-12 22:32 pku_smile 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 标题:Swap Nodes in Pairs通过率:32.5难度:中等Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should retu... 阅读全文
posted @ 2015-03-12 22:24 pku_smile 阅读(145) 评论(0) 推荐(0) 编辑