PAT (Grade A) 2019 autumn test 7-2 Merging Linked Lists (25 points) Ling Chen 1642

PAT (Grade A) 2019 autumn test 7-2 Merging Linked Lists (25 points) Title Description: Given two singly linked lists L1=a1→a2→⋯→an−1→an and L2=b1→b2→⋯→bm−1→bm. If n≥2m, you are supposed to reverse and merge the shorter one into the longer one to obtain a list like a1→a2→bm→a3→a4→bm−1⋯. For example, given one list being 6→7 and the other one 1 ...

Posted by jwinn on Sat, 04 Sep 2021 13:38:14 -0700