Is it not permitted by using tabulate function to solve it?
Good job with the solution. You must have given it a lot of thinking !!!
A..h... cheater !!!
4008 Solvers
Number of 1s in the Binary Representation of a Number
362 Solvers
207 Solvers
295 Solvers
480 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!