You are viewing a single comment's thread. Return to all comments →
Javascript
function pageCount(n: number, p: number): number { const totalFlips = Math.floor(n/2); const myP = Math.floor(p/2); return Math.min(myP, totalFlips - myP); }
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 →
Javascript