In Leetcode No.79, when I face test case ["aa"], "aa", the compiled result for my code in Sublime is True (correct answer). However, the result in Online judgement is False. Even i reset the class variable (https://gist.github.com/anonymous/b2f8d87a4751d86965a9) or avoid to use it (https://gist.github.com/anonymous/d75889648252efc30dd6), the problem still occur. I dont know whats going on. Can anyone help me to figure out what the problem is? Thanks a lot!!
There are some updates that reset or avoid to use class variables.
Can anyone help me?