[LeetCode] 1942. The Number of the Smallest Unoccupied Chair
I. Description문제 링크: https://leetcode.com/problems/the-number-of-the-smallest-unoccupied-chair/description/?envType=problem-list-v2&envId=hash-tableII. Codei)class Solution: def smallestChair(self, times: List[List[int]], targetFriend: int) -> int: # 목적 time target_time = times[targetFriend] # 시간 순서대로 정렬 ([[3, 10], [1, 5], [2, 6]] -> [[1, 5], [2, 6], [3, 10]]) time..
2025. 1. 22.