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 Solvers59
Suggested Problems
-
14111 Solvers
-
Number of 1s in the Binary Representation of a Number
480 Solvers
-
Get the length of a given vector
13042 Solvers
-
Change the first and last diagonal element of the identity matrix to zero
160 Solvers
-
778 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