Pandigital Numbers

Published by Matt 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.