O(n) sol using pop_back still TLE


#1

O(n) solution I am pushing all elements equl to B to the end and using pop_back still it gives TLE i dont think It can be done in something more less than this