All pastes #966558 Raw Edit

Rewritable in O(m+n) time?

public text v1 · immutable
·published 2008-04-01 20:43 UTC
rendered paste body
function 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