注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
店面之后 就是coding轮
题目是面经里面的题
leetcode289的变种题(开始可以deep copy全部的list, 然后part2会让你优化空间复杂度)
整体逻辑就是遍历每个spot,然后遍历她的全部邻居,根据对应fire的数量决定要不要change number,写到新的copy里面去.
Given a matrix of 'neurons',
where each elementhan 3 are firing.
Keep in mind that the value of a neuron cannot drop below zero.
新人求加点大米看面经~~~
多谢 |