Problem statement Given an integer n, return the decimal value of the binary string formed by concatenating the binary representations of 1 to n in order, modulo 10^9 + 7. Example 1 Input: n = 1 Output: 1 Explanation: "1" in binary corresponds to the...
leetsolve.com2 min read
No responses yet.