Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First - Weak Point solution in Clear category for Weak Point by AQiccl135
def weak_point(matrix):
x = []
y = []
for i in matrix:
x.append(sum(i))
# Zip() transposes a matrix. I.e. newMatrix rows == oldMatrix columns.
# Watch out for cases where the matrix isn't square
for j in zip(*matrix):
y.append(sum(j))
return x.index(min(x)), y.index(min(y))
Oct. 15, 2014