MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / swap

Function swap

DemoPrograms/Demo_Sort_Visualizer.py:15–16  ·  view source on GitHub ↗
(i, j)

Source from the content-addressed store, hash-verified

13
14def bubble_sort(arr):
15 def swap(i, j):
16 arr[i], arr[j] = arr[j], arr[i]
17 n = len(arr)
18 swapped = True
19 x = -1

Callers 1

bubble_sortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected