Problem 45245. String count
40.0% Correct | 60.0% Incorrect
Last Solution submitted on Feb 28, 2023
Tim on 27 Dec 2019
I get [28 0 9 2 26 7] for test case 2 and [0 13 0 0 0 11] for test case 3.
Asif Newaz on 27 Dec 2019
I am not quite sure where did that amp came from in test-2.
it wasn't in my original test suite.
in test-3, grave accent is not a punctuation mark - so far i know.
Tim on 30 Dec 2019
For some reason, according to Matlab function isstrprop, the characters $ + < = > ^ ` | ~ are not considered to be punctuation marks, or letters, or digits, or anything else--this seems to be discriminatory and unjust.
Problem Recent Solvers17
Number of 1s in the Binary Representation of a Number
First non-zero element in each column
Moving average (variable kernel length)
More from this Author165
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!