网站首页
编程语言
数据库
系统相关
其他分享
编程问答
1545
2024-10-20
[LeetCode] 1545. Find Kth Bit in Nth Binary String
Giventwopositiveintegersnandk,thebinarystringSnisformedasfollows:S1="0"Si=Si-1+"1"+reverse(invert(Si-1))fori>1Where+denotestheconcatenationoperation,reverse(x)returnsthereversedstringx,an