📌  相关文章
📜  子数组划分hackerrank解决方案javascript代码示例

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

代码示例1
// subarray division hackerrank solution javascript
function birthday(s, d, m) {
    // Write your code here
    let count = 0;
    let sum = 0;
    for(let i=0 ; i previous + current);
        if(sum === d){
            count++
        }
    }
    return count;
}