Skip to content

Instantly share code, notes, and snippets.

View rlvdx's full-sized avatar
driven by fun

Raphaël Louvradoux rlvdx

driven by fun
View GitHub Profile
@rlvdx
rlvdx / palindrome.py
Created December 14, 2023 08:09
Find the highest palindrome resulting of the product of three three-digits integers
import time
def is_palindrome(num):
str_num = str(num)
reversed_str = str_num[::-1]
return str_num == reversed_str
max_palindrome = 0
max_a, max_b, max_c = 0, 0, 0

Keybase proof

I hereby claim:

  • I am rlvdx on github.
  • I am rlvdx (https://keybase.io/rlvdx) on keybase.
  • I have a public key ASA6qlNgSAp_fiPNOTe2mh_FQh_tmauMxogTU751s5yLvgo

To claim this, I am signing this object: