#29 - Sum of Elements in Matrix
Problem Statement:
You are given a matrix of size m x n, where each cell contains an integer value. Your task is to implement a function to calculate the sum of all elements in the matrix.
Example 1
Input
Output
Last updated