It is okay to have an algorithm running in linear time.