We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Isn't it more efficient to use a for loop? Because sets A and B are disjoint, if you find i in A then you don't need to check it in B. I don't really know list comprehesions, so maybe I'm missing something.
No Idea!
You are viewing a single comment's thread. Return to all comments →
Isn't it more efficient to use a
for
loop? Because setsA
andB
are disjoint, if you findi
inA
then you don't need to check it inB
. I don't really know list comprehesions, so maybe I'm missing something.