Leetcode 9. Palindrome Number #shorts #coding #tech

preview_player
Показать описание
"Palindrome Number" is a common coding interview question where we check if a number reads the same forward and backward. In this video, we solve it in Python by converting the number to a string and comparing it with its reverse. Watch till the end to learn a quick and efficient way to check for a Palindrome Number! 🚀🔥
Рекомендации по теме
Комментарии
Автор

I solved it by reversing a copy of x in a while loop and comparing the reversed number and x, after ensuring that x is positive.

yonatan
Автор

Does that even pass the memory and time requirements?

eantropix
visit shbcf.ru