Easy Python


  • 0
    S

    The key is to find the intersection.
    One easy way to find intersection is to make row=min(row,list_row)

    """
    r,c=m,n
    for rc in ops:
    r,c=min(rc[0],r),min(rc[1],c)
    return r*c
    """


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.