Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
import math
|
||||
|
||||
def sort(nums)
|
||||
global math
|
||||
for currentPlace in range(0, len(nums) - 2)
|
||||
smallest = math.maxint
|
||||
smallestAt = currentPlace + 1
|
||||
for check in range(currentPlace, len(nums) - 1)
|
||||
if nums[check] < smallest
|
||||
smallestAt = check
|
||||
smallest = nums[check]
|
||||
end
|
||||
end
|
||||
temp = nums[currentPlace]
|
||||
nums[currentPlace] = nums[smallestAt]
|
||||
nums[smallestAt] = temp
|
||||
end
|
||||
return nums
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue