algorithms/implementation/designer-pdf-viewer.c
int designerPdfViewer(int h_count, int* h, char* word) {
    int max_height = 0;
    int length = 0;
    for (int i = 0; word[i] != '\0'; i++)
    {
        int j = word[i] - 'a';
        if (max_height < h[j])
        {
            max_height = h[j];
        }
        length++;
    }
    return length * max_height;
}
// Complete the designerPdfViewer function below.
Complete the designerPdfViewer function below.
Complete the designerPdfViewer function below .
int designerPdfViewer(int h_count, int* h, char* word) {
    int max_height = 0;
    int length = 0;
    for (int i = 0; word[i] != '\0'; i++)
    {
        int j = word[i] - 'a';
        if (max_height < h[j])
        {
            max_height = h[j];
        }
        length++;
    }
    return length * max_height;
}
int designerPdfViewer ( int h_count , int * h , char * word ) { int max_height = 0 ; int length = 0 ; for ( int i = 0 ; word [ i ] != ' \0 ' ; i ++ ) { int j = word [ i ] - ' ' ; if ( max_height < h [ j ] ) { max_height = h [ j ] ; } length ++ ; } return length * max_height ; }
Complete the designerPdfViewer function below.
Complete the designerPdfViewer function below .