Discuss / Python / 不用左右指针循环比较

不用左右指针循环比较

Topic source

Kiah

#1 Created at ... [Delete] [Delete and Lock User]

def is_palindrome(n):

    return str(n) == str(n)[::-1]


  • 1

Reply