摘要:
思路: 宽度优先搜索 确定起点坐标后,向四周进行搜索 在节点扩展时需要判断是否重复,是否出边界,横纵坐标数字之和小于K 代码: class Solution { public: //坐标进行计算 int single_sum(int x) { int s=0; while(x) s+=x%10,x/ 阅读全文
posted @ 2020-08-03 19:23
Sunshineboy1
阅读(106)
评论(0)
推荐(0)
2020年8月3日