kamyu104/LeetCode-Solutions

Problem #647 Palindromic Substrings

liadbiz opened this issue · 3 comments

Hi, your solutions are greet!

But I can not understand your solution of problem #647, and it seems give wrong answer.

image

It works in python 2.
For python 3, you should change "/" into "//", thanks!

Fine. But could you please give some explanation of your solution? It's a little magic for me.

By the way, Would you consider updating your code to python3?

No, changing from python 2 to 3 is much easier than python 3 to 2.