Problem Description
Loading...
Problem Analysis
Because it is convenient to compare
whether mid is greater than res
(by calculating the number of stones that need to be skipped for mid)
so we can perform Binary Search on the answer
cpp
| |
Because it is convenient to compare
whether mid is greater than res
(by calculating the number of stones that need to be skipped for mid)
so we can perform Binary Search on the answer
| |
Loading...