there n block tower row tower height a_i you re build crew want building look nice possible in single day perform follow operation Choose indice j 1 leq j leq n neq j block tower tower j this essentially decrease a_i 1 increase a_j 1 you think ugliness building height difference tall short building Formally ugliness define maxamina what s minimum possible ugliness achieve number day