karolinagergert

Untitled

Jul 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from random import randint
  2. def __minRec__(i):
  3. if i < [i-1]:
  4. i, [i-1] = [i-1], i
  5. __minRec__([i-1])
  6. elif i >= [i-1]:
  7. return [i-1]
  8.  
  9.  
  10.  
  11. N=int(input())
  12. a=[randint(0, 10) for i in range(N)]
  13. print(','.join(map(str,a)))
  14. __minRec__(N-1)
Advertisement
Add Comment
Please, Sign In to add comment