🔥No One Will Give You🎓🧠Such a simple code🎯🔥
# Code\ncpp []\nclass Solution {\npublic:\n    void postorder(vector<int>& v, Node* root) {\n        if (root == nullptr) {\n            return;\n        }\n   
# ***# Code***\n```cpp []\nclass Solution {\npublic:\n    void postorder(vector<int>& v, Node* root) {\n        if (root == nullptr) {\n            return;\n        }\n        for (int i = 0; i < root->children.size(); i++) {\n            postorder(v, root->children[i]);\n        }\n        v.push_back(root->val);\n    }\n    vector<int> postorder(Node* root) {\n        vector<int> v;\n        postorder(v, root);\n        return v;\n    }\n};\n```
['C++']