289
-
[LeetCode] 289. Game of LifeLeetCode 2021. 10. 21. 17:47
https://leetcode.com/problems/game-of-life/ Game of Life - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Game of Life The Game of Life 의 법칙에 따라 각 셀의 state 가 변한다. - 해당 state 가 1이고, 이웃 (주변 8칸)의 state 의 합이 2보다 작을 경우, 해당 state 는 다음 세대에 0 이 된다. - 해당 state 가 1이고, 이웃 (주변 8칸)의 state 의 합이..