How to Take the O(h) Out of Photo1

How to Take the O(h) Out of Photo1