Approximate Max Competitive Programming Runtime

This is an approximate max algorithm for a given N: