class Solution {public: vector<int> printListFromTailToHead(ListNode* head) { vector<int> ret; while(head){ ret.push_back(head->val); head = head->next; } std::reverse(ret.begin(),ret.end()); return ret; }};</int>...