#include <iostream> using namespace std; struct Node { int val; Node* next; Node(): val(0), next(nullptr) {} Node(int val): val(val), next(nullptr) {} Node(int val, Node* next): val(val), next(next) {} } ; void createList(Node* dummy, int n) { int i = 0; Node* node...