Week9 박태환 SWEA 5653 줄기세포배양 풀이 #154
Open
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.
풀이
저는 cell이라는 클래스를 만들고, 2차원 cell[][]배열을 만들어두고, 문제를 풀었습니다.
그리고 세포들이 퍼질 때, 기존 맵과 새로 생성된 맵을 비교하면서 들어갈 수잇는지 확인하였고,
새로 확산되는 것들은 selected배열을 활용해 체크해둔 뒤 , 큰 값이 추가될 수 있도록했습니다.
리뷰 요청 사항
느낀점