You are viewing a single comment's thread. Return to all comments →
Oh right did not see that. Umm I guess there will be rounding error if you do: max_days = mid-1;
instead do max_days = mid;
since mid is always rounded down.
Minimum Time Required
You are viewing a single comment's thread. Return to all comments →
Oh right did not see that. Umm I guess there will be rounding error if you do: max_days = mid-1;
instead do max_days = mid;
since mid is always rounded down.