Dico
fun maxSubarraySum(list: List<Int>, n: Int): Int? { if (list.isEmpty()) return null return (0..list.size - n).map { i -> list.subList(i, i + n).sum() }.max() }
igor.wojda