Skip to content

Conversation

summer2788
Copy link
Contributor

Day-27 / 박종은

문제 번호

  1. 55_JumpGame
  2. 133_CloneGraph
  3. 198_HouseRobber

(Optional) 공유하고 싶은 내용

tree 나 graph 의 deep copy 를 해야할 땐 map(파이썬에선 딕셔너리) 자료구조를 떠올리자

@summer2788 summer2788 linked an issue Jul 27, 2024 that may be closed by this pull request
@summer2788 summer2788 self-assigned this Jul 27, 2024
Copy link

우측에 있는 Projects, Milestone, Development를 확인 후 할당 해주세요~! 🙇

Copy link
Member

@jihostudy jihostudy left a comment

Choose a reason for hiding this comment

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

js에서 깊은 복사는 다음과 같이 된답니다. 어렵죵..ㅎ

const obj = {
A: {
a: 1,
},
B: 2,
};

let copy = JSON.parse(JSON.stringify(obj));

Copy link
Collaborator

@kinwjdghks kinwjdghks left a comment

Choose a reason for hiding this comment

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

훌륭헙니다!!

@summer2788 summer2788 merged commit 41f80a4 into main Jul 30, 2024
4 checks passed
@summer2788 summer2788 deleted the 27일차_Jongeun branch July 30, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[DAILY] 27일차
3 participants