The test to see if this is correct doesn't work. If you just code 'b = 0' then it is always correct!
This is really cool problem.
I get the correct answers for this, but the website refuses to tell me it is correct. Fix this dumb stuff.
@Harley, MATLAB functions are case sensitive. Did you try lowercase sum?
In fact this problem can be solved by only using sscanf and str2num.
one of the hardest problems I've ever faced
enjoyed solving this
Hehe, improving on a cheat solution is always fun!
Nice one :)
Cute. Fixed the test suite.
The test for this problem is wrong!
Well, that was disappointing!
Calculate the Levenshtein distance between two strings
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Rotate input square matrix 90 degrees CCW without rot90
Permute diagonal and antidiagonal
Renaming a field in a structure array
Given two strings, find the maximum overlap
Return the largest number that is adjacent to a zero
Maximum running product for a string of numbers
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office