[ Python ] ✅✅ Simple Python Solution Using Bin Function 🥳✌👍
If You like the Solution, Don\'t Forget To UpVote Me, Please UpVote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 3110 ms, faster than 38.58% of Python3 online submissi
# If You like the Solution, Don\'t Forget To UpVote Me, Please UpVote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 3110 ms, faster than 38.58% of Python3 online submissions for Concatenation of Consecutive Binary Numbers.\n# Memory Usage: 15.9 MB, less than 22.05% of Python3 online submissions for Concatenation of Consecutive Binary Numbers.\n\n\tclass Solution:\n\t\tdef concatenatedBinary(self, n: int) -> int:\n\n\t\t\tbinary = \'\'\n\n\t\t\tfor num in range(1, n+1):\n\n\t\t\t\tbinary = binary + bin(num)[2:]\n\n\t\t\tresult = int(binary, 2)\n\n\t\t\treturn result % (10**9 + 7)\n\n# Thank You \uD83E\uDD73\u270C\uD83D\uDC4D
['Python', 'Python3']