if(head.val == val){ return head.next; } ListNode cur = head.next; while(cur != null){ if(cur.val == val){ cur.val = cur.next.val; cur.next = cur.next.next; break; } cur = cur.next...