Binary representation in base (-2) shift left

前端 未结 0 792
耶瑟儿~
耶瑟儿~ 2021-01-17 02:52

Given a binary representation of a number x in base (-2), return the binary representation of ceiling(x/2) in base (-2).
Is there a solution in O(1)? I tried to think

相关标签:
回答
  • 消灭零回复
提交回复
热议问题