Skip to content

Conversation

kdg0209
Copy link
Collaborator

@kdg0209 kdg0209 commented May 13, 2023

😭시간 초과입니다😭

Comment on lines +65 to +82
for (int i = 0; i < move.length; i++) {
switch (move[i]) {
case 'A':
myIncludes[0]++;
break;
case 'C':
myIncludes[1]++;
break;
case 'G':
myIncludes[2]++;
break;
case 'T':
myIncludes[3]++;
break;
default:
throw new IllegalArgumentException();
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

윈도우 안에 들어있는 값을 전부 비교해서 시간초과가 나는 것 같습니다. 윈도우를 한칸씩 옮기면서 마지막에 들어온 값에 대해서만 값을 비교하면 시간안에 성공할 것 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants