An m x n grid of cells is used, where each cell has either a life (as 1) or dead (as 0) state initially. When each cell interacts with its eight neighbours (horizontal, vertical, and diagonal), the following four rules govern their behavior.
An m x n grid of cells is used, where each cell has either a life (as 1) or dead (as 0) state initially. When each cell interacts with its eight neighbours (horizontal, vertical, and diagonal), the following four rules govern their behavior.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: easy
标签: interviewbit, nagarro, company-specific
目标公司: Nagarro
参考答案摘要
When a live cell has fewer than two live neighbours, it dies because of being under-populated. A cell with two or three living neighbours survives to the next generation. An overcrowded 1 live cell ki...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。