Why don't you provide the counting system inside the function? What's the point of retyping it from wiki?
Funny that 2017a-style double quotations significantly shorter the size as compared to the 2016b-style string() function alternative :)
didnt see that Cody changed the test suite of this problem and I lost one important badge. such a shame..
not good
Which values occur exactly three times?
3836 Solvers
189 Solvers
204 Solvers
How many trades represent all the profit?
526 Solvers
3166 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!