If I'm reading the problem statement right, I think either the answer to test case 2 should be 867 (123^3 = 1860867.) or n=2 (123^2=15129).
James, you are correct. Problem statement and test suite have been fixed.
Return the first and last characters of a character array
3688 Solvers
473 Solvers
Numbers spiral diagonals (Part 1)
97 Solvers
Find out the Gray Code for a Given Binary Number
68 Solvers
Solve a System of Linear Equations
3823 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!