...

/

Solution: Find The K-th Lucky Number

Solution: Find The K-th Lucky Number

Let’s solve the Find The K-th Lucky Number problem using the Bitwise Manipulation pattern.

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 <= ...

Access this course and 1400+ top-rated courses and projects.