From 4ebb7175394a1c25f25f698fec020201deb3fd90 Mon Sep 17 00:00:00 2001 From: Deven <63876261+devenperez@users.noreply.github.com> Date: Wed, 13 Jul 2022 14:48:03 -0400 Subject: [PATCH] Time: 93 ms (46.30%), Space: 13.5 MB (11.60%) - LeetHub --- 9-palindrome-number/9-palindrome-number.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/9-palindrome-number/9-palindrome-number.py b/9-palindrome-number/9-palindrome-number.py index 31c9c7a..acd20d2 100644 --- a/9-palindrome-number/9-palindrome-number.py +++ b/9-palindrome-number/9-palindrome-number.py @@ -4,7 +4,6 @@ class Solution(object): :type x: int :rtype: bool """ - #print(x) # All negative numbers are not palindromes if x < 0: return False @@ -18,8 +17,6 @@ class Solution(object): firstDigit = x / (10 ** currPower) lastDigit = x % 10 - #print([firstDigit, lastDigit]) - if firstDigit != lastDigit: return False @@ -27,7 +24,6 @@ class Solution(object): x -= firstDigit * (10 ** currPower) x /= 10 currPower -= 2 - #print("after " + str(x)) # True if x is one digit (or widdled down to it) return True