despites its pass,my sol still wrong when it be the case:"n=7",because the central element always zero no matter how we change input "n",
my solution is actually wrong.but TestSuite didn't add a "n=7" case,so...
Smallest size solution here without regexp cheat nor look up table.
Find the longest sequence of 1's in a binary sequence.
3513 Solvers
Find state names that start with the letter N
638 Solvers
Return unique values without sorting
607 Solvers
Flag largest magnitude swings as they occur
592 Solvers
Find the position of first minimum value in an integer array with numbers
122 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!