You are viewing a single comment's thread. Return to all comments →
function pageCount(n, p) { if(p == 1 || p == n){ return 0 } let forwardTrunCount = parseInt(p/2); let backwardTrunCount = parseInt((n/2)-forwardTrunCount) return Math.min(forwardTrunCount,backwardTrunCount) }
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 →