This is a simple program which demonstrates the implementation of the bubble sort algorithm in python. The complexity of the program is O(n2) . The Input is taken from the console and then appended to a list, which is further processed .
print 'Enter the list of elements followed by space:'
for i in range(0, len(x)-1):
for j in range(0,len(x)-i-1):
Found suggestions, Please comment them here !
Latest posts by Bikash Panda (see all)
- DHT12 Sensor Interfacing with Linkit Smart 7688 Duo using Python/Arduino - April 27, 2020
- Setting up NextCloud on Raspberry Pi - March 31, 2020
- LockDown PC based on availability of Bluetooth Device - March 30, 2020