上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: 263. 丑数263. 丑数Table of Contents1. 题目2. 代码3. 思路1 题目263. 丑数2 代码class Solution { /** * @param Integer $num * @return Boolean */ function isUgly($num) { if ($num < 1) { return ... 阅读全文
posted @ 2020-09-01 21:25 吴丹阳-V 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 258. 各位相加258. 各位相加Table of Contents1. 题目2. 代码3. 思路1 题目258. 各位相加2 代码class Solution { /** * @param Integer $num * @return Integer */ function addDigits($num) { $sum = $num; ... 阅读全文
posted @ 2020-09-01 21:17 吴丹阳-V 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 257. 二叉树的所有路径-leetcode257. 二叉树的所有路径-leetcodeTable of Contents1. 题目2. 代码3. 思路1 题目257. 二叉树的所有路径2 代码/** * Definition for a binary tree node. * class TreeNode { * public $val = null; * public $lef... 阅读全文
posted @ 2020-09-01 13:36 吴丹阳-V 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 235. 二叉搜索树的最近公共祖先-leetcode235. 二叉搜索树的最近公共祖先-leetcodeTable of Contents1. 题目2. 代码3. 思路1 题目235. 二叉搜索树的最近公共祖先2 代码/** * Definition for a binary tree node. * class TreeNode { * public $val = null; * ... 阅读全文
posted @ 2020-08-28 21:18 吴丹阳-V 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 226. 翻转二叉树-leetcode226. 翻转二叉树-leetcodeTable of Contents1. 题目2. 代码1 题目226. 翻转二叉树2 代码/** * Definition for a binary tree node. * class TreeNode { * public $val = null; * public $left = null; * ... 阅读全文
posted @ 2020-08-28 13:29 吴丹阳-V 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页