7 kyu
Sum of Minimums!
1,714 of 28,599Aizaz_Ahmad
Description:
Given a 2D ( nested ) list ( array, vector, .. ) of size m * n
, your task is to find the sum of the minimum values in each row.
For Example:
[ [ 1, 2, 3, 4, 5 ] # minimum value of row is 1
, [ 5, 6, 7, 8, 9 ] # minimum value of row is 5
, [ 20, 21, 34, 56, 100 ] # minimum value of row is 20
]
So the function should return 26
because the sum of the minimums is 1 + 5 + 20 = 26
.
Note: You will always be given a non-empty list containing positive values.
ENJOY CODING :)
Fundamentals
Arrays
Similar Kata:
Stats:
Created | Aug 22, 2019 |
Published | Aug 22, 2019 |
Warriors Trained | 38897 |
Total Skips | 2437 |
Total Code Submissions | 56671 |
Total Times Completed | 28599 |
C++ Completions | 1714 |
Python Completions | 10769 |
C Completions | 546 |
NASM Completions | 26 |
JavaScript Completions | 12232 |
CFML Completions | 21 |
C# Completions | 979 |
Ruby Completions | 560 |
PHP Completions | 863 |
Rust Completions | 507 |
Haskell Completions | 151 |
COBOL Completions | 9 |
Swift Completions | 813 |
Julia Completions | 8 |
Java Completions | 115 |
Total Stars | 268 |
% of votes with a positive feedback rating | 94% of 2910 |
Total "Very Satisfied" Votes | 2590 |
Total "Somewhat Satisfied" Votes | 277 |
Total "Not Satisfied" Votes | 43 |
Total Rank Assessments | 129 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |