In the 5th test case there is number n=10000675820025; which is very large number MATLAB is not accepting to get number from 1 to 10000675820025;
@Bhaskar
that means u need to find some alternate way to solve
@Asif
You are right in the sense that one needs to find an alternate way
However, I guess MATHWORKS need to work on this as there is a low cost solution available to the problem rendered useless with max array size
Given an unsigned integer x, find the largest y by rearranging the bits in x
783 Solvers
206 Solvers
Volume of a sphere given its surface area
117 Solvers
227 Solvers
Calculate distance travelled when given radius and rotations
183 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!