Skip to content

Instantly share code, notes, and snippets.

View neeyatl's full-sized avatar

Neeyat Lotlikar neeyatl

  • Raia, Goa, India
View GitHub Profile
"""
This week's question:
Given a number n, find the sum of all n-digit palindromes.
Example:
> nPalindromes(2)
> 495 // 11 + 22 + 33 + 44 + 55 + 66 + 77 + 88 + 99
"""