File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 577577 * [ Hardy Ramanujanalgo] ( maths/hardy_ramanujanalgo.py )
578578 * [ Hexagonal Number] ( maths/hexagonal_number.py )
579579 * [ Integration By Simpson Approx] ( maths/integration_by_simpson_approx.py )
580+ * [ Is Int Palindrome] ( maths/is_int_palindrome.py )
580581 * [ Is Ip V4 Address Valid] ( maths/is_ip_v4_address_valid.py )
581- * [ Is Palindrome] ( maths/is_palindrome.py )
582582 * [ Is Square Free] ( maths/is_square_free.py )
583583 * [ Jaccard Similarity] ( maths/jaccard_similarity.py )
584584 * [ Juggler Sequence] ( maths/juggler_sequence.py )
Original file line number Diff line number Diff line change 1- def is_palindrome (num : int ) -> bool :
1+ def is_int_palindrome (num : int ) -> bool :
22 """
33 Returns whether `num` is a palindrome or not
44 (see for reference https://en.wikipedia.org/wiki/Palindromic_number).
55
6- >>> is_palindrome (-121)
6+ >>> is_int_palindrome (-121)
77 False
8- >>> is_palindrome (0)
8+ >>> is_int_palindrome (0)
99 True
10- >>> is_palindrome (10)
10+ >>> is_int_palindrome (10)
1111 False
12- >>> is_palindrome (11)
12+ >>> is_int_palindrome (11)
1313 True
14- >>> is_palindrome (101)
14+ >>> is_int_palindrome (101)
1515 True
16- >>> is_palindrome (120)
16+ >>> is_int_palindrome (120)
1717 False
1818 """
1919 if num < 0 :
You can’t perform that action at this time.
0 commit comments