This needs a richer test suite, as the leading solution at the time of this comment is just a lookup table.
You should add testcases where the palindrome is in the 2nd half of the word. Cause then my solution wouldnt work and i had to come up with something else.^^
Useful!
Better than lookup, worse than finding maximum palindrom.
This ought to be the leading solution.
mine is dump but good for my eyes + brain, :)
What's the point in even making these non-solutions?
If no solution then non-solution is solution :)
Find all elements less than 0 or greater than 10 and replace them with NaN
13139 Solvers
Back to basics 22 - Rotate a matrix
768 Solvers
Set the array elements whose value is 13 to 0
956 Solvers
375 Solvers
379 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!