Rewritable in O(m+n) time?
public text v1 · immutablefunction removeFrom(list a, list b):
for i in 0..length(a)
for j in 0..length(b)
if a[i] == b[j]
remove a[i]
end
end
end
endfunction removeFrom(list a, list b):
for i in 0..length(a)
for j in 0..length(b)
if a[i] == b[j]
remove a[i]
end
end
end
end