You are viewing a single comment's thread. Return to all comments →
Kotlin version
fun birthday(s: Array<Int>, d: Int, m: Int): Int { return s.toList() .windowed(size = m, step = 1) .filter { it.sum() == d }.size }
Seems like cookies are disabled on this browser, please enable them to open this website
Subarray Division 2
You are viewing a single comment's thread. Return to all comments →
Kotlin version