-
2 Comments
Chris Breshike
on 9 Jan 2019
How am I only failing test 12?
I get tf=0 when i run this in Matlab...
goc3
on 10 Jan 2019
That test case has the longest string input, by far. Your solution is coded to only sum digits twice. After those two steps, the resulting sum in this specific case is still greater than 9, and, therefore, fails your test of equal to a single-digit multiple of three (3, 6, or 9).
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!