This is a revised version of problem #4 in the Scrabble Scores series. The multipliers are in strings arrays, rather than double-level cell arrays, to coincide with the subsequent problems.
Test suit is broken as it keeps only the first case string array to the entire suit . Please fix since its a Word Puzzles problem
@Nikolaos Nikolaou: can you be more specific? I just re-tested two previous solutions and they worked fine. Each of the test cases contains single-line variables.
I've just solved the problem. It seems to be working fine.
Count from 0 to N^M in base N.
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Count consecutive 0's in between values of 1
Find nth maximum
Divisible by 4
Divisible by 16
Divisible by 8
Divisible by n, prime vs. composite divisors
Lights Out 5 - 5x5, 10 moves
Divisible by 7
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