Why the function can't change the global variable?

后端 未结 0 1205
南方客
南方客 2021-01-27 12:48

The question is to Construct Binary Tree from Preorder and Inorder Traversal.

I thought root is a global class so the function can change it but it turns out not.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题