# Tag Archives: php

## Calculate the diagonal difference of an N x N matrix

<?php /** * Calculate the diagonal difference of an N x N matrix * * runs in O(n) * * @param int $n size of N x N array * @param array $a N x N array * * @return … Continue reading