-
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 4 #813
[mintheon] Week 4 #813
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.
수고하셨습니다
@@ -0,0 +1,33 @@ | |||
class Solution { | |||
/** | |||
시간복잡도: O(n^2) |
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.
사실상 삼중 for statement인데, O(n^3)으로 볼 수도 있을까요? 의견 궁금합니다
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.
사실상 삼중 for statement인데, O(n^3)으로 볼 수도 있을까요? 의견 궁금합니다
for 루프가 3개라고 해서 무조건 n^3는 아니지만, 해당 코드는 말씀하신대로 n^3의 경우로 보이네요!
결국 while내 호출이 될때마다 최대 O(n) 만큼의 작업이 추가 수행되는 부분을 놓쳤네요.
return false; | ||
} | ||
|
||
private boolean hasWord(int y, int x, String word, int index) { |
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.
String word
도 함수의 argument로 넘기는 대신 class 변수로 등록해놓고 사용할 수 있을까요?
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.