changes
This commit is contained in:
1 parent
9abfaa74ea
commit
82999252cf
2 files changed
+5
No files matched your search
BIN
Binary file not shown.
@@ -7,6 +7,11 @@ class sortMethods():
|
||||
def bubbleSortSimpel(elementCount):
|
||||
elements = requirements.randomNumbers(elementCount)
|
||||
print(f"Elements: {elements} - BubbleSortSimpel")
|
||||
for k in range(1, elementCount):
|
||||
for i in range(elementCount -1):
|
||||
if elements[i] > elements[i+1]:
|
||||
elements[i], elements[i+1] = elements[i+1], elements[i]
|
||||
print(f"Elemets: {elements}")
|
||||
|
||||
@staticmethod
|
||||
def bubbleSortExtended(elementCount):
|
||||
|
||||
Reference in new issue
Block a user