Function to return minimum run - length encoding for string s by removing atmost k characters
public static int MinRunLengthEncoding ( String s , int n , int k ) { for ( int i [ ] [ ] [ ] : dp ) for ( int j [ ] [ ] : i ) for ( int p [ ] : j ) Arrays . fill ( p , - 1 ) ; return solve ( s , n , 0 , k , ( char ) 123 , 0 ) ; }