Somthings are very wrong


#1

Wasted a lot of my time.
There is some problem with test cases because same test case is giviing wrong when submitted but giving right when test by custom input.
Please recheck how internal code is working


#2

Yes, the tester needs corrections, totally agree!


#3

This is because , may be u are declaring answer vector globally
try passing it with function


#4

I am passing result vector to function and there is no global variable. By the way I submitted same code again and it accepted it this time. I guess things are fixed now :slightly_smiling_face: