Skip to main content
Ask a Question
Vraj A. Desai
Computer Science Student
Asked a question last year

I have a doubt on today's assignment question Because see according to examples in first if Listy = [1,5,6,4,1,2,3,5] then it's match done and second if Listy = [1,5,6,5,1,2,3,6] then it's gone. But according to me in both the cases answer should be it's gone. As in first case common list elements are [1,5,1,5] but it's output is it's match and in second case common list elements are [1,5,5,1] and it's output is it's gone. How in both the cases common list doesn't contain the given order i.e. [1,1,5]. So, according to me output for both cases should be it's gone but in question it is different. I have shared code and it's output as attachment

Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now