Skip to content

Conversation

@dongrri22
Copy link
Contributor

No description provided.

Copy link
Contributor

@sena-22 sena-22 left a comment

Choose a reason for hiding this comment

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

주제가 익숙하지 않아서 어려웠지만 고생한 만큼 다음엔 더 수월하게 푸실 수 있을 것 같아요! 이번 주도 수고하셨습니다..!

Copy link
Contributor

Choose a reason for hiding this comment

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

방향을 변수 하나로 선언하는 방법도 좋네요

Copy link
Contributor

Choose a reason for hiding this comment

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

높이가 1 이상이라 초기값을 1로 두어도 괜찮을 것 같습니다 저도 0부터 시작했지만..😌

Copy link
Contributor

Choose a reason for hiding this comment

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

첫 번째 요소를 없애기 위해 shift()를 써도 되는군요!

Copy link
Contributor

@jee-woo jee-woo left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

});

const dfs = (start) => {
const stack = [start];
Copy link
Contributor

Choose a reason for hiding this comment

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

덕분에 스택으로 구현하는 방법도 있다는거 알았네요!

// 9655: 돌 게임

const input = require("fs").readFileSync("/dev/stdin").toString().trim().split("\n").map(Number);

Copy link
Contributor

Choose a reason for hiding this comment

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

입력 부분이 깔끔하네요! 전 여기서 변수 3개를 선언해서 하고 있었는데.. 배우고 갑니다.

// 1904: 타일
const input = require("fs").readFileSync("/dev/stdin").toString().trim().split("\n").map(Number);
const memo = Array.from({ length: input }, () => 0);

Copy link
Contributor

Choose a reason for hiding this comment

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

new Array와 Array.from을 어떤 경우에 구분해서 사용하시는지 궁금합니다👀

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.

3 participants