Conversation
sena-22
reviewed
Apr 6, 2023
Contributor
sena-22
left a comment
There was a problem hiding this comment.
주제가 익숙하지 않아서 어려웠지만 고생한 만큼 다음엔 더 수월하게 푸실 수 있을 것 같아요! 이번 주도 수고하셨습니다..!
haejeong/week17/유기농배추.js
Outdated
haejeong/week17/안전영역.js
Outdated
Contributor
There was a problem hiding this comment.
높이가 1 이상이라 초기값을 1로 두어도 괜찮을 것 같습니다 저도 0부터 시작했지만..😌
haejeong/week17/유기농배추.js
Outdated
Contributor
There was a problem hiding this comment.
첫 번째 요소를 없애기 위해 shift()를 써도 되는군요!
jee-woo
approved these changes
May 3, 2023
| }); | ||
|
|
||
| const dfs = (start) => { | ||
| const stack = [start]; |
Contributor
There was a problem hiding this comment.
덕분에 스택으로 구현하는 방법도 있다는거 알았네요!
sena-22
approved these changes
May 5, 2023
| // 9655: 돌 게임 | ||
|
|
||
| const input = require("fs").readFileSync("/dev/stdin").toString().trim().split("\n").map(Number); | ||
|
|
Contributor
There was a problem hiding this comment.
입력 부분이 깔끔하네요! 전 여기서 변수 3개를 선언해서 하고 있었는데.. 배우고 갑니다.
| // 1904: 타일 | ||
| const input = require("fs").readFileSync("/dev/stdin").toString().trim().split("\n").map(Number); | ||
| const memo = Array.from({ length: input }, () => 0); | ||
|
|
Contributor
There was a problem hiding this comment.
new Array와 Array.from을 어떤 경우에 구분해서 사용하시는지 궁금합니다👀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.