Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Algorithm of bubble sort

begin BubbleSort(list)

   for all elements of list
      if list[i] > list[i+1]
         swap(list[i], list[i+1])
      end if
   end for
   
   return list
   
end BubbleSort
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #Algorithm #bubble #sort
ADD COMMENT
Topic
Name
6+9 =