結果 : python string matching time complexity