Husk, 6 bytes
mΣ∂m↔T
Explanation:
T # Transpose the (implicit) argument; swapping rows/columns
m↔ # Reverse each row
∂ # Take the anti-diagonals of this matrix
mΣ # And sum each inner anti-diagonal list
# (after which the result is output implicitly)
Kevin Cruijssen
- 136.2k
- 14
- 154
- 394