Program Bubble sort | PYTHON CODE | TCS CODING QUESTIONS

Pubblicato il: 06 dicembre 2018
sul canale di: Extreme Programmer
634
30

Hi Guys,
I have created this program for Bubble sort in Python. I made use of 'Range' keyword for listing the numbers in sequence and 'swap' number code to swap if predecessor is greater than successor.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BUBBLE sort:
Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Range :
range(start_point,end_point,step)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Swap function:
Temp = a
a = b
b = Temp
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hope you liked my this video
Thank you!!!
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My Previous video link
(TO CHECK THE STRING IS ANAGRAM OR NOT):    • Program to check if two strings are Anagra...  
(HALF ASCENDING AND HALF DESCENDING):    • How to arrange array in half Ascending and...  
(PROGRAM TO CALCULATE ANGLE BETWEEN CLOCK HAND):    • Program to find angle between hands of clo...  
(PRINT | H$w a&e YOU):    • Replacing letters | Important Java program...  
(Fortune Teller Program):    • How to make a basic Python fortune Teller ...  
------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------
#pythonprogramming #pythonbasic #i_extreme_coder
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


In questa pagina del sito puoi guardare il video online Program Bubble sort | PYTHON CODE | TCS CODING QUESTIONS della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Extreme Programmer 06 dicembre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 634 volte e gli è piaciuto 30 spettatori. Buona visione!