摘要:
深度优先 /** * 剑指 Offer 13. 机器人的运动范围 * https://leetcode.cn/problems/ji-qi-ren-de-yun-dong-fan-wei-lcof/ * * 思路:深度优先 * */ public class Solution1 { private 阅读全文
posted @ 2022-06-25 22:42
廖子博
阅读(22)
评论(0)
推荐(0)
摘要:
/** * 剑指 Offer 12. 矩阵中的路径 * https://leetcode.cn/problems/ju-zhen-zhong-de-lu-jing-lcof/ * * 思路:深度优先搜索 * */ public class Solution { private char[][] bo 阅读全文
posted @ 2022-06-25 21:25
廖子博
阅读(28)
评论(0)
推荐(0)
摘要:
/** * 剑指 Offer 11. 旋转数组的最小数字 * https://leetcode.cn/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof/ * * 输入:numbers = [3,4,5,1,2] * 输出:1 * */ public 阅读全文
posted @ 2022-06-25 20:41
廖子博
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号