Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

InsertionSort

Language: Layout:
+ ] Show input
Absolute running time: 0.27 sec, cpu time: 0.28 sec, memory peak: 16 Mb, absolute service time: 0,27 sec 
edit mode |  history  | discussion
Error(s), warning(s):
Traceback (most recent call last):
  File "source_file.py", line 33, in <module>
    sortList = Insertionsort(alist)
  File "source_file.py", line 23, in Insertionsort
    a[0]=0
TypeError: 'int' object does not support item assignment
Hello, world!