摘要: 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) 编辑