/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : * val(x), next(NULL) { * } * }; */ #include <cstdlib> #include <iterator> #include <vector> class Solution { public: vector<int> printListFromTailToHead(ListNode* head) { vector<int> answer;...