Tap here to switch tabs
Problem
Submissions

Problem: Find The K-th Lucky Number

Find The K-th Lucky Number gives an integer k and asks you to return the k-th number in order whose decimal representation uses only 4 and 7, 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. 

Constraints:

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

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find The K-th Lucky Number

Find The K-th Lucky Number gives an integer k and asks you to return the k-th number in order whose decimal representation uses only 4 and 7, 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. 

Constraints:

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