-
Notifications
You must be signed in to change notification settings - Fork 126
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
[mintheon] Week 09 #990
[mintheon] Week 09 #990
Conversation
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.
해당 문제의 경우 시간 복잡도를 O(n) 으로 하셔도 괜찮지만, 조건 상 O(log n) 으로 되어있기 때문에 다시 한번 풀이에 도전해 보셔도 괜찮을것 같아요 :)
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.
LinkedList 의 특징을 잘 살려서 풀이 해 주신것 같습니다!
이후에도 비슷한 문제가 나올 예정입니다!
for(int i = 0; i < nums.length; i++) { | ||
result = Math.max(result, maxValue[i]); | ||
} | ||
|
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.
O(n)으로 풀어주셨군요 👍 첫번째 for-loop에서 비소대교를 하면 루프를 줄일 수 있을 것 같아요!
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
로 설정해주세요.