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 Solvers58
Suggested Problems
-
Sum of diagonal of a square matrix
1637 Solvers
-
Sum the numbers on the main diagonal
613 Solvers
-
Add a row of zeros on top of a matrix
268 Solvers
-
497 Solvers
-
204 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