Skip to content

Conversation

frankvictor
Copy link

Eliminate useless variable.

node *pre is totally unused, why leave it there?

Eliminate useless variable.

node *pre is totally unused, why leave it there?
@soulmachine
Copy link
Owner

这个变量以前是有用的,后来下面有几句代码注释掉了,就没有用了。

这几行无用的代码,跟preorderTraversal, postorderTraversal 很对称,能后有助于记忆,所以故意多出来放在这里。

@soulmachine soulmachine closed this Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants