Philaland Coin | TCS Mockvita 2020 | C # implementation to find the minimum number of denominations required for any number ; Function to find the minimum number of denomminations required ; Driver Code ; Function Call
using System ; class GFG { static int findMinDenomin ( int n ) { return ( ( int ) ( Math . Log ( n ) / Math . Log ( 2 ) ) + 1 ) ; } static public void Main ( ) { int n = 10 ; Console . WriteLine ( findMinDenomin ( n ) ) ; } }