Algorithm to divide a unknown number by 2 until its 1

前端 未结 0 638
心在旅途
心在旅途 2021-01-14 18:21

I am trying to see if there is a way or algorithm to divide a number(N) by 2 until it\'s one. the tricky thing is that I can\'t determine if the number is odd or even and wh

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