Little useless-useful R functions – Finding total sum of all sub-arrays and sum of maximums

You may also like...