Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. i = 0
  2. c = 0
  3.  
  4.  
  5. def SelectionSort(A):
  6.     for i in range(len(A) - 1):
  7.         m = i
  8.         j = i + 1
  9.         while j < len(A):
  10.             if A[j] < A[m]:
  11.                 m = j
  12.             j = j + 1
  13.         A[i], A[m] = A[m], A[i]
  14.  
  15.  
  16. A = [int(x) for x in input().split()]
  17. print(SelectionSort(A))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top