Minimum operations of the given type required to make a complete graph | Function to return the minimum number of steps required ; Driver Code
< ? php function minOperations ( $ N ) { $ x = log ( $ N , 2 ) ; $ ans = ceil ( $ x ) ; return $ ans ; } $ N = 10 ; echo minOperations ( $ N ) ; ? >