Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Weak Point by mozurin
"use strict";
function weakPoint(matrix)
{
return [
[matrix, matrix[0], (x, y) => matrix[x][y]],
[matrix[0], matrix, (x, y) => matrix[y][x]],
].map(
([lx, ly, mget]) => lx.map(
(_, x) => [
x,
ly.map((_, y) => mget(x, y)).reduce((s, e) => s + e),
]
).sort(
([_, a], [__, b]) => a - b
)[0][0]
);
}
June 24, 2018
Comments: