You are viewing a single comment's thread. Return to all comments →
Kotlin solution
var max = -1 for (i in keyboards.indices) { for (k in drives.indices) { val n = keyboards[i] + drives[k] if (n in (max + 1)..b) max = n } } return if(max <= 0) -1 else max
Seems like cookies are disabled on this browser, please enable them to open this website
Electronics Shop
You are viewing a single comment's thread. Return to all comments →
Kotlin solution