Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
AlotOfReading
· 5mo ago · 0 comments
You don't have to assume that. We can take each randomly oriented noodle and orient it correctly in O(1) as a preprocessing step. Since the complexity would be additive, the overall complexity remains O(N).
Comments
No comments yet.
Better HN