1
A short review
This code passes jshint perfectly, well done. Besides the obvious warning that you did not provide swap of course
The name arrayCopy is perhaps unfortunate, since this works on any array whether it is a copy or not
The name bubbleSort also does not perfectly describe what is going on, it not only bubble sorts the array, but it also tracks the ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
sorting × 1054algorithm × 300
java × 253
python × 195
c++ × 174
mergesort × 134
performance × 131
javascript × 113
beginner × 99
c × 88
array × 85
c# × 77
quick-sort × 69
python-3.x × 54
insertion-sort × 43
programming-challenge × 40
c++11 × 32
strings × 27
recursion × 26
reinventing-the-wheel × 25
time-limit-exceeded × 24
ruby × 22
python-2.x × 21
complexity × 21
php × 19