⚫⚪Easy as pie || SHORT CODE || c++
here "auto" is used for type inference\n- Using simply recusion\n\n# Code\ncpp []\nclass Solution {\npublic:\n    // here just the \n    vector<int> postorder(N
# here "auto" is used for type inference\n- Using simply recusion\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    // here just the \n    vector<int> postorder(Node* root) {\n        if (root == nullptr) \n        return {};\n\n        vector<int> ans;\n        for (auto child : root->children) {\n            vector<int> temp = postorder(child);\n            ans.insert(ans.end(), temp.begin(), temp.end());\n        }\n        ans.push_back(root->val);\n        return ans;\n    }\n};\n```\nhope it helped you don\'t forget to thank you to reach till here.
['C++']