Find The K-th Lucky Number

Try to solve the Find The K-th Lucky Number problem.

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. 

Constraints:

  • 1<=1 <= k <=109<= 10^9

Examples

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.