How Many Problem Can I Accept
ID: 937; medium; 可以完成的题目数量
Solution 1 (Java)
Notes
The search range is [0, sqrt(2n/k)]
. Normally, we would set right
to be n
, but here it would exceed the time limit since n
is long.
Last updated