we have N spot which can be blank o filled calculate the number of iteration for these spots. e.g. N=2 1- blank blank 2- blank full 3- full blank 4- full full iteration is 4 e.g. N=3 1- blank blank blank 2- blank blank full 3- blank full blank 4- blank full full 5- full blank blank 6- full blank full 7- full full blank 8- full full full iteration is 8
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers57
Suggested Problems
-
2416 Solvers
-
Sum all integers from 1 to 2^n
17396 Solvers
-
Convert a numerical matrix into a cell array of strings
2381 Solvers
-
Back to basics 23 - Triangular matrix
1117 Solvers
-
165 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
You could greatly simplify and shorten your description by using 0 and 1 instead of blank and full.
Thanks for the suggestion, but unless you have a binary mind, 0/1 , using this visualisation, blank/empty would make more sense