Skip to content

0706

화이팅
풀만큼 풀고오자
후회 ㄴㄴ

코테

python
def solution(sizes):  
    rotated = []  
    for w, h in sizes:  
        rotated.append([max(w, h), min(w, h)])  
    max_w = max(w for w, h in rotated)  
    max_h = max(h for w, h in rotated)  
      
    return max_w * max_h
python
while days:  
        base_day = days.popleft()  
        count = 1  
        while days and days[0] <= base_day:  
            days.popleft()  
            count += 1
python
def palin(s, l, r):  
    while l < r:  
        if s[l] != s[r]:  
            return False  
        l += 1  
        r -= 1