由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - "简单的"linklist的问题
相关主题
有人同看Populating Next Right Pointers in Each Node II的recursive写法么?请教LEETCODE讲解部分的LCA一道题的变种。。
如何 reversely print一个single linked-list中各个node里的数据?一个Linkedlist面试题的教训
(求推荐)recursion以及把recursion转变为iteration的资料ms面试题目
Reverse characters of each word in a sentence问了一个链表,1->2->3->4->5, 每两个交换,2->1->4->3->5
求问两题思路career cup上面一题递归求解
两种DPYahoo 面经
non recursive binary tree traversal in O(n) time and O(1) space问了一个链表,1->2->3->4->5, 每两个交换,2->1->4->3->5,
问一道careercup 5ed的题目(13.8)一个stack怎么sort
相关话题的讨论汇总
话题: do话题: again话题: pointers话题: linklist
进入JobHunting版参与讨论
1 (共1页)
f****4
发帖数: 1359
1
Reverse a linked list iteratively, do it first with single pointers and then
do it again with double pointers. Now do it again recursively but not tail-
recursive, and then do it again tail-recursively. What do you do if it has a
loop?
http://cpuzz.blogspot.com/2005/07/reverse-single-linked-list-using.html
第一个问题的解,真要是面的时候给问到,脑子一下没转过弯来,肯定答不出来。。。
m*****g
发帖数: 226
2
好变态
仔细看了code,其实还是用了3个指针
f****4
发帖数: 1359
3
http://cslibrary.stanford.edu/105/LinkedListProblems.pdf
单链表18问(还没详细看)估计大家过一下,再碰到这种"简单"的题目就心里有底了
f****4
发帖数: 1359
4
更正一下,第一个url中的1pointer实现,c++中出错
error: invalid operands of types ‘Node*’ and ‘Node*’ to binary operator^
1 (共1页)
进入JobHunting版参与讨论
相关主题
一个stack怎么sort求问两题思路
DFS 堆栈溢出,怎么破?两种DP
问个题,bt中找最大的bstnon recursive binary tree traversal in O(n) time and O(1) space
我发现我竟然学会了12种tree traversal的办法问一道careercup 5ed的题目(13.8)
有人同看Populating Next Right Pointers in Each Node II的recursive写法么?请教LEETCODE讲解部分的LCA一道题的变种。。
如何 reversely print一个single linked-list中各个node里的数据?一个Linkedlist面试题的教训
(求推荐)recursion以及把recursion转变为iteration的资料ms面试题目
Reverse characters of each word in a sentence问了一个链表,1->2->3->4->5, 每两个交换,2->1->4->3->5
相关话题的讨论汇总
话题: do话题: again话题: pointers话题: linklist