Storing pre-order traversal of a tree in vector

前端 未结 0 946
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 12:08

I was trying to store my pre order traversal in a vector. First i tried this.

vector s;
vector  preorder(Node* root)
{
  if(root==NULL)
  re         


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