Well if you're really serious about www.topcoder.com, I guess you'll never need to write bubblesort.
Use Arrays.sort() or Collections.sort() in java or sort(v.begin(), v.end()) in C++ :-)
Well if you're really serious about www.topcoder.com, I guess you'll never need to write bubblesort.
Use Arrays.sort() or Collections.sort() in java or sort(v.begin(), v.end()) in C++ :-)