Find the sum of all elements in a nested list.
MediumProblem Statement
Find the sum of all elements in a nested list.
Sample Input
[[1, 2, [3]], [4, 5]]
Sample Output
15
Limits
Time: 2s · Memory: 256 MB
Find the sum of all elements in a nested list.
[[1, 2, [3]], [4, 5]]
15
Time: 2s · Memory: 256 MB