Find The K-th Lucky Number
Lucky numbers made of 4 and 7 in numeric order follow a binary counter: write k + 1 in binary and map each bit after the leading 1 to a digit.
Lucky numbers made of 4 and 7 in numeric order follow a binary counter: write k + 1 in binary and map each bit after the leading 1 to a digit.