3 ms·Yes. Any kind of membership question is very easy to answer with a set/dict data structure.by abhishekjha 6y agoYes. Any kind of membership question is very easy to answer with a set/dict data structure.