注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Given a binary tree made of these nodes, convert it, in-place (i.e. don't allocate new Nodes), into a circular doubly linked list in the same order as an in-order traversal of the tree.
cla说说解法错在哪里了,还是C++有什么特殊的逻辑,Java是这样写吧?用了instance variable,也不是很满意,就是想看看是不是有什么知识盲点,跑leetcode查了下有类似的题,也是这样写的,跑了几遍都是对的,leetcode又错了? |