#include <cctype> #include <iostream> #include <list> using namespace std; struct ListNode { char val; ListNode* next; ListNode(): val('0'), next(nullptr) {} ListNode(char data): val(data), next(nullptr) {} ListNode(char data, ListNode* node): val(data), next(no...