반응형
목록 code review/two pointer (1)
KEEP GOING
[python] LeetCode : Container-With-Most-Water (Two Pointer)
https://leetcode.com/problems/container-with-most-water/submissions/ Container With Most Water - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 실패한 코드 class Solution: def maxArea(self, height: list[int]) -> int: dist = len(height) - 1 # 길이가 2인 경우 if len(height) == 2: return min..
code review/two pointer
2022. 2. 2. 11:31