r/Backend • • 16d ago

Python interview questions

/r/learnpython/comments/1xqyqv7/python_interview_questions/
1 Upvotes

1 comment sorted by

1

u/Unable-Hawk-206 16d ago

I got one something like this: You have strings sorted in this fashion samples = [ ["ABC","123","6553"...], ["123", "potre", ...], ... ]

Print all the duplicates.

It was pretty easy and I solved it with looping over all the elements and storing them in a set, the printing if already in the set.