See test suite
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers13
Suggested Problems
-
Project Euler: Problem 16, Sums of Digits of Powers of Two
181 Solvers
-
Back to basics 12 - Input Arguments
624 Solvers
-
Put two time series onto the same time basis
356 Solvers
-
Change the sign of even index entries of the reversed vector
654 Solvers
-
BULLSEYE Part 2: Reference Problem 18 BULLSEYE
161 Solvers
More from this Author7
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I've spent much time trying to solve this problem without hacking. After finally giving up and seeing the solution, I can attest it is only possible to solve this problem with hacks. The author last came in Cody servers in 2016, and the p function no longer works. Don't waste unnecessary time trying to solve this through traditional means. You will see what was the trick, and why it no longer works when you hack it.
And let this be a lesson to all people out there. Sometimes problems are just broken. On the internet and in famous textbooks. Although some authors will probably die before admitting they made a mistake. :)