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.
Find common elements in matrix rows
1311 Solvers
Back to basics 9 - Indexed References
397 Solvers
112 Solvers
749 Solvers
A Simple Tide Gauge with MATLAB
346 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!