Minimum number of letters needed to make a total of n | Java implementation of the approach ; Function to return the minimum letters required to make a total of n ; Driver code
class GFG { static int minLettersNeeded ( int n ) { if ( n % 26 == 0 ) return ( n / 26 ) ; else return ( ( n / 26 ) + 1 ) ; } public static void main ( String args [ ] ) { int n = 52 ; System . out . print ( minLettersNeeded ( n ) ) ; } }