How to find the number N using binary search?

后端 未结 0 1596
甜味超标
甜味超标 2020-12-22 03:26

You own a ship that can store up to N Kg of goods (1≤N≤2×10**9). You don\'t know N and you want to determine it by experience. You can make up to 31 trials, in each trial yo

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