You are viewing a single comment's thread. Return to all comments →
C++
int pageCount(int n, int p) { int first_p = p / 2; // Count from first page int last_p = (n / 2) - first_p; // Count from last page return first_p < last_p ? first_p : last_p; }
Seems like cookies are disabled on this browser, please enable them to open this website
Drawing Book
You are viewing a single comment's thread. Return to all comments →
C++