/** * struct ListNode { * int val; * struct ListNode *next; * 7(int x) : * val(x), next(NULL) { * } * }; */ class Solution { public: vector<int> printListFromTailToHead(ListNode* head) { ListNode* cur=head; vector<int> res; ...