顺带询问一个问题
所在版块:求学狮城 发贴时间:2007-09-20 21:19  评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
是CLRS page 216 10.4-5


Write an O(n)-time nonrecursive procedure that, given an n-node binary tree, prints out the key of each node. Use no more than constant extra space outside of the tree itself and do not modify the tree, even temporarily, during the procedure.
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

 相关帖子 我要回复↙ ↗回到正文
anyone interested to discuss about the last question in ACM this year? <Tunnels chancing   (75 bytes , 1177reads )
这样可以么? 房间   (343 bytes , 438reads )
I have revised the solution. 房间   (737 bytes , 377reads )
似乎还是不行 bugzzj   (221 bytes , 396reads )
是可以的 房间   (1023 bytes , 340reads )
看错了 房间   (154 bytes , 346reads )
And 房间   (88 bytes , 316reads )
顺带询问一个问题 房间   (267 bytes , 512reads )
如果child有到parent的ref的话。 bugzzj   (524 bytes , 462reads )
gr8. 房间   (142 bytes , 342reads )
construct a graph as follows icky   (178 bytes , 377reads )
disagree bugzzj   (149 bytes , 386reads )
so assume the spy enters 2 icky   (91 bytes , 354reads )
i think we can destroy the tunnels 2 0 and 2 1 simultaneously. bugzzj   (0 bytes , 353reads )
ok, i misunderstood the problem icky   (0 bytes , 332reads )
choose one of 3 or 4 icky   (0 bytes , 314reads )
opps! you are right. 吴永铮   (76 bytes , 317reads )
agree 吴永铮   (0 bytes , 281reads )
maxflow from vertex 0 to vertex 1 icky   (0 bytes , 326reads )
min-cut problem? icky   (54 bytes , 399reads )