We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I've had the same issue and as I've understood, some of the numbers I returned as pandigital had a zero itself. I'd checked for zero only multipliers of numbers, I mean if we check number 'a' than I'd checked only a*2, a*3 and so one if they contain zero, but I hadn't check 'a' itself. After adding zero check for 'a' I've got 3rd case right.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #38: Pandigital multiples
You are viewing a single comment's thread. Return to all comments →
I've had the same issue and as I've understood, some of the numbers I returned as pandigital had a zero itself. I'd checked for zero only multipliers of numbers, I mean if we check number 'a' than I'd checked only a*2, a*3 and so one if they contain zero, but I hadn't check 'a' itself. After adding zero check for 'a' I've got 3rd case right.