Looks like a neat problem, but I have a question on your example solution with no extra numbers: If I'm reading it correctly, there are supposed to be two 4s in the box. Where is the second 4?
Good catch James! Thanks. That was a data entry problem. Should be fixed now.
Nice problem! But I might have some misunderstanding on your problem. My own solution didn't converge on test case 6. Is convergence guaranteed? Could you provide an example solution for test case 6?
Hi Peng, and thanks for the note. I see your solutions now do quite well with all test cases! :-)
Renaming a field in a structure array
731 Solvers
It dseon't mettar waht oedrr the lrettes in a wrod are.
652 Solvers
235 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
140 Solvers
Create incremental spiral WITHOUT USING EVAL or FEVAL
39 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!