Skip to content

Commit

Permalink
Merge pull request #13 from yjll1019/master
Browse files Browse the repository at this point in the history
모르는 부분 수정
  • Loading branch information
yjll1019 authored Jul 31, 2018
2 parents 1ed8358 + a55ff9f commit ef150bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion queue/Code_1158.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void main(String[] args) {
}
j.add(String.valueOf(q.poll()));

/* while문 사용시 틀렸다고 나옴.
/* while문 사용시 틀렸다고 나옴. >> 이유 : poll횟수를 내가 지정해줬기 때문에
while(!q.isEmpty()) {
q.add(q.poll());
q.add(q.poll());
Expand Down
2 changes: 1 addition & 1 deletion stack/Code_9012.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void main(String[] args) {
}
}

/* 틀렸다고 나오는 코드
/* 틀렸다고 나오는 코드 >> 이유 : 이렇게 하게되면 괄호의 갯수만 맞으면 true기 때문에 괄호의 순서 짝?이 맞지 않아도 true가된다.
int cnt=0;
for(int i=0; i<num; ++i) {
Expand Down

0 comments on commit ef150bb

Please sign in to comment.