Created
May 13, 2012 11:54
-
-
Save lbj96347/2688030 to your computer and use it in GitHub Desktop.
python bubble sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#python bubble test | |
def make_array(): | |
define_array = [ i for i in range(0, 5000) ] | |
for x in range(0, 5000): | |
import random | |
num = random.randint(0,5000) | |
define_array[x] = num | |
#print define_array[x] | |
define_array.sort() | |
print define_array | |
make_array() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment