Skip to content

Commit 416d65b

Browse files
jamiebaseDaleSeo
andauthored
Update container-with-most-water/gcount85.py
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
1 parent c1627a0 commit 416d65b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

container-with-most-water/gcount85.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
# Approach
33
투포인터로 양 끝에서 물의 양을 계산해나갑니다.
4-
더 낮은 height인 쪽의 포인터를 줄여나가는데, 높이가 같은 경우에는 양쪽 모두 포인터를 움직입니다.
4+
더 낮은 height인 쪽의 포인터를 줄여나가는데, 높이가 같은 경우에는 왼쪽 포인터만 움직입니다.
55
66
# Complexity
77
height의 길이가 N일 때

0 commit comments

Comments
 (0)