Ad
  • Custom User Avatar

    It should be 15/5,18/6,33/11,36/12and 69/13.The index of sequence anOverAverage(n) start with 1. But the Araay in code start with 0(in most programming languages)

  • Custom User Avatar

    因为不能是简单的去掉小数部分。当为负数时,比如-1.5 向下取整是-2,去掉小数部分就是-1了。只是在正数是看起来是去掉小数的逻辑而已

  • Custom User Avatar

    round the number down 应该翻译成向下取整,不应该是四舍五入,Math.floor()