class Solution { public: void rec(TreeNode* pRoot, vector<TreeNode*> &ret){ if(pRoot!=NULL){ rec(pRoot->left, ret); ret.push_back(pRoot); rec(pRoot->right, ret); } } TreeNode* KthNode(TreeNode* pRoot, int k) { ...