Avoiding TLE (for partially correct answers)


#1

While forming the quotient string, use push_back() to generate the string. In my case, string += char was giving TLE.


#2

@shinchan_007 Thanks bro !!! Your comment saved me a whole lot of time.


#3

@shinchan_007 thaks for the comment but can you answer why push_back() worked?


#4

yes, thanks a lot, I was also puzzled where the TLE was coming from