-
-
Notifications
You must be signed in to change notification settings - Fork 245
[devyejin] WEEK 06 solutions #1871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
from typing import List | ||
class Solution: | ||
def lengthOfLIS(self, nums: List[int]) -> int: | ||
def binary_search(target): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호 직접 바이너리 서치 구현을 하셔서 target 이 들어갈 위치를 리턴하는거군용 👍
result.append(matrix[r][c]) | ||
matrix[r][c] = VISITED | ||
|
||
nr, nc = r + dr[d], c + dc[d] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그냥 사실 제 개인적인 생각인데ㅎㅎ;
저는 코드 작성할 때 변수명이 nr, nc, dr, dc 보다는 의미를 담는게 좋더라구요
뭔가 저렇게 축약이 되어있으면 코드 보면서 저게 무슨 의미였었지 헷갈릴때도 있어서ㅎㅎ 물론 개취이지만 한번 말씀드려보았습니다~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이번 한주도 너무 고생많으셨습니다👍
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!