Python - Easiest Solution - Brute-Force - Beats 95%
Things I learnt which might benefit everyone :\n The bin() function in python returns the binary value prefixed with 0b, for our solution we use the format() to
Things I learnt which might benefit everyone :\n* The `bin()` function in python returns the binary value **prefixed with 0b**, for our solution we use the `format()` to get rid of those prefixes.\n* To convert a binary to an integer equivalent, which can actually be done using `int()` , by passing in 2 as the second parameter\n```\nclass Solution:\n    def concatenatedBinary(self, n: int) -> int:\n        string = ""\n        for i in range(1,n+1):\n            string+=format(i,"b")\n        return int(string,2)%(10**9 + 7)\n```
['Python']