📅  最后修改于: 2022-03-11 15:03:36.486000             🧑  作者: Mango
// drawing book hackerrank solution javascript
function pageCount(n, p) {
// Write your code here
let startCount = 0;
let endCount = 0;
for(let i = 1; ip; j--){
if(j % 2 === 0){
endCount++;
}
}
if(startCount > endCount){
return endCount;
}else {
return startCount;
}
}