Specify the following problem (you may use any text representation for logical/m...
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Specify the following problem (you may use any text representation for logical/mathematical symbols):Given two finite integer sequences a and b that have at least one element in common (possibly at different positions), compute the sequence c that results from appending a and b.For example, for legal inputs a=[1,2,1] and b=[3,1], output c=[1,2,1,3,1] is legal.