Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Bubble sort python

for i in range(x - 1):
  for j in range(x - 1 - i):
    if s[j]>s[j + 1]:
      s[j],s[j + 1] = s[j + 1],s[j]
print(*s, sep=' ')
Source by xjoi.net #
 
PREVIOUS NEXT
Tagged: #Bubble #sort #python
ADD COMMENT
Topic
Name
8+1 =