Pandigital Numbers

Published by zatoichi49 in

A pandigital number contains all digits (0-9) at least once. Write a function that takes an integer, returning True if the integer is pandigital, and False otherwise.

Examples

is_pandigital(98140723568910) ➞ True

is_pandigital(90864523148909) ➞ False
# 7 is missing.

is_pandigital(112233445566778899) ➞ False

Notes

Think about the properties of a pandigital number when all duplicates are removed.

Watch a quick demo on how Edabit works.