You are given number(s) with all digits - 1.
Your answer will depend on the count of 1 in the given number, for example -
x1=11; x2=111; x3=1111;
y1=11; y2=121; y3=1221;
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers19
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2060 Solvers
-
17457 Solvers
-
Program an exclusive OR operation with logical operators
779 Solvers
-
Simple date to serial no. conversion
134 Solvers
-
Matrix rotation as per given angle
120 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!