Skip to content

Commit e6149af

Browse files
authored
Update find-the-largest-palindrome-divisible-by-k.py
1 parent 1f768ca commit e6149af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/find-the-largest-palindrome-divisible-by-k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def f(l):
4646
l = n//2-2
4747
return '8'+'9'*l+"77"+'9'*l+'8'
4848
l, r = divmod(n, 12)
49-
return "999999"*l+f(r)+"999999"*l # 999999%7 == 0
49+
return "999999"*l+f(r)+"999999"*l # 999999%7 = 0

0 commit comments

Comments
 (0)