Easy
Count the Gaps
Print every column with its number of missing values, one per line as
column: count, in the table's column order. Then print the total number of missing values.Input
A CSV table: a header line, then one line per row (an empty field means a missing value), then a line END.
Output
One line per column, then a line total: N.
Sample 1
Input
dept,hours,score CSE,12,85 EEE,5,52 CSE,,78 BBA,2,31 EEE,7, END
Output
dept: 0 hours: 1 score: 1 total: 2
Sample 2
Input
a,b,c,d 1,2,3,4 5,,7,8 ,,, 9,10,11, END
Output
a: 1 b: 2 c: 1 d: 2 total: 6
Output appears hereHints