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
-
Determine Whether an array is empty
811 Solvers
-
Generate N equally spaced intervals between -L and L
943 Solvers
-
Cell Counting: How Many Draws?
2384 Solvers
-
490 Solvers
-
Back to basics - mean of corner elements of a matrix
460 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