https://kotlinlang.org logo
#codereview
Title
# codereview
v

vaskir

06/19/2020, 12:29 PM
@LastExceed
Copy code
val last = (0..3).flatMap { x ->
    (0..3).map { y ->
        offsets.sumBy { (first, second) ->
            arr[y + second][x + first]
        }
    }
}.max()
l

LastExceed

06/19/2020, 1:00 PM
this is what i was looking for, thanks! btw please use threads instead of top level messages for replies in the future
5 Views