Skip to content

Instantly share code, notes, and snippets.

View neeyatlotlikar's full-sized avatar
💭
In coding mode 👨‍💻

Neeyat Lotlikar neeyatlotlikar

💭
In coding mode 👨‍💻
  • Goa, India
  • 01:48 (UTC +05:30)
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
"""