Day 91: Variations
Take all the natural numbers in which each digit occurs at most once and sort them in the ascending order. Given this ordering, write two functions: (1) order->number: find a number N
at index I
, (2) number->order: find an index I
of number N
.