Jump to content

Last list item: Difference between revisions

Line 497:
Temp = []
n = 0
 
while true
n++
Tempfirst = sortmin(List)
first = Temp[1]
second = Temp[2]
ind1 = find(List,first)
del(List,ind1)
second = Temp[2]min(List)
ind2 = find(List,second)
if ind1 < del(List,ind2)
del(List,ind2)
del(List,ind1)
else
del(List,ind1)
del(List,ind2)
ok
sum = first + second
add(List,sum)
2,468

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.