A good opportunity to implement a hashtable: lots of collisions without it.
A re-post of Solution 1137054, because that one doesn't appear in the list of solutions, for some reason (I'm not sure why).
904 Solvers
355 Solvers
Determine Whether an array is empty
653 Solvers
450 Solvers
Implement a bubble sort technique and output the number of swaps required
160 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!