MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Backend/comments/1xqyrg7/python_interview_questions/
r/Backend • u/DueBid3298 • 16d ago
1 comment sorted by
1
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.
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.