Search⌘ K
AI Features

Solution: Find The K-th Lucky Number

Solution: Find The K-th Lucky Number takes an integer k and asks you to return the k-th number made entirely of fours and sevens as a string.

Statement

A number is called lucky if it comprises only the digits 44 and 77. Your task is to return the k-th lucky number as a string for a given integer k. 

...