/** * public class ListNode { * int val; * ListNode next = null; * * ListNode(int val) { * this.val = val; * } * } * */ import java.util.ArrayList; import java.util.Deque; import java.util.LinkedList; import java.util.List; public class Solution { pub...