Problem 34. Binary numbers
Solution Stats
Problem Comments
-
10 Comments
Show
7 older comments
Jigar Gada
on 10 Nov 2012
matlab functions should not be allowed. Let people think of the solution from scratch.
Jon
on 18 Nov 2013
I actually use a function to do this in my project, but my original code scored 47.
MDK
on 21 Oct 2014
I had all the test cases working properly except for n=10!
This is very weird!!
Gareth Lee
on 10 Nov 2014
what's meaning?
when n = 3;
A = binary_numbers(n);
assert(all(A(:) == 0 | A(:) == 1))
Sanzhar Askaruly
on 3 Jul 2019
fun!
Anton Casas
on 25 Oct 2020
Very fun problem!
akihisa yorozu
on 21 Aug 2021
More difficult than I expected!
Panggah Prabawa
on 4 Jul 2022
There was a guy who solved this problem with around 11k code size. Absolute madlad.
Anudeep
on 9 Nov 2022
Fun exercise!
Riya
on 10 Nov 2022
difficult that I intended it to be.
Solution Comments
Show commentsProblem Recent Solvers3916
Suggested Problems
-
3923 Solvers
-
822 Solvers
-
472 Solvers
-
4038 Solvers
-
Find the max element of the array
1067 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!