Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: bubble sort can be implemented even simpler: [code=python] def bubblesort(arr): done = False while not done: done = True for i in range(len(arr)-1): if arr[i] > arr[i+1]: arr[i], arr[i+1] = arr[i+1], arr[i] done = False return arr [/code] and quicksort: [code=python] def quicksort(a): if len(a) <= 1: return a pivot … |
The End.