My code can pass on my local environment, my fails the online judge. Anybody can help? thanks
} |
Did you notice the notification? I see you have three member variables declared, would it be the root cause? IMPORTANT: The Solution object is instantiated only once and is reused for each test case input. When declaring a class member variable, be extra cautious and remember to reset the variable! |