In both return cases, it is safe to cast the long value into an int. The algorithm complexity is O(log n) in time and O(1) in space (which by the way would ...
確定! 回上一頁