You are viewing a single comment's thread. Return to all comments →
I'm not sure if python can optimize this?
Internally I feel that this is still performing 3 loops, instead of doing only one using 3 counters.
i dont get it, we could linearly perform search for 3 types and get count instead of 3 counters or 3 for loops. am i missing something here?