4 ms·Indeed, but I want an algorithm with deterministic O(nm) time.by chaoxu 8y agoIndeed, but I want an algorithm with deterministic O(nm) time.