Calculating the first maximum element
while ( p != None ) : NEW_LINE if ( max < hash [ ord ( p . data ) ] ) : NEW_LINE INDENT res = p . data NEW_LINE max = hash [ ord ( p . data ) ] NEW_LINE DEDENT p = p . next NEW_LINE return res NEW_LINE