diff options
Diffstat (limited to 'helper/other.py')
| -rw-r--r-- | helper/other.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/helper/other.py b/helper/other.py deleted file mode 100644 index 05854d8..0000000 --- a/helper/other.py +++ /dev/null @@ -1,8 +0,0 @@ -from itertools import permutations - - -def n_digits_pandigital(n, front_zero=False): - return [ - int(''.join(map(lambda n: str(n), x))) - for x in permutations(range(n)) if front_zero or x[0] != 0 - ] |
