📌  相关文章
📜  绘本hackerrank解决方案javascript代码示例

📅  最后修改于: 2022-03-11 15:03:36.486000             🧑  作者: Mango

代码示例1
// 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;
  }
}