Problem 1106. I've got the power! (Inspired by Project Euler problem 29)
Solution Stats
Problem Comments
-
3 Comments
What your problem description asks for and what your test suite asks for are different. Specifically, test case 4 requires that the operation be commutative, which, by your problem statement, it is not (since the power function itself is not commutative). This is reflected in the other test cases as well. (also, you call your arguments x and y in the description and a and b in the template).
You are correct. I had the "and b^a" in there originally, but I accidentally deleted it when I added the "for 2≤a≤x and 2≤b≤y" text. It's fixed now, and the description should be a bit clearer.
thanks James!
Solution Comments
Show commentsProblem Recent Solvers105
Suggested Problems
-
2258 Solvers
-
185 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
514 Solvers
-
Return the first and last characters of a character array
8087 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
9083 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!