摘要: di地址:https://leetcode-cn.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/ <?php /** 给你一个整数 n,请你帮忙计算并返回该整数「各位数字之积」与「各位数字之和」的差。 示例 1: 阅读全文
posted @ 2020-03-27 11:58 花花妹子。 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/guess-numbers/ <?php /** 小A 和 小B 在玩猜数字。小B 每次从 1, 2, 3 中随机选择一个,小A 每次也从 1, 2, 3 中选择一个猜。他们一共进行三次这个游戏,请返回 小A 猜对了几次? 输入 阅读全文
posted @ 2020-03-27 11:44 花花妹子。 阅读(168) 评论(0) 推荐(0) 编辑
摘要: d地址:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/ <?php /** 给定一个排序数组,你需要在 原地 删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。 不要使用额外的数组空间,你必 阅读全文
posted @ 2020-03-27 11:13 花花妹子。 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/intersection-of-two-arrays/ <?php /** 给定两个数组,编写一个函数来计算它们的交集。 示例 1: 输入: nums1 = [1,2,2,1], nums2 = [2,2] 输出: [2] 示例 阅读全文
posted @ 2020-03-27 10:19 花花妹子。 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/how-many-numbers-are-smaller-than-the-current-number/ <?php /** 给你一个数组 nums,对于其中每个元素 nums[i],请你统计数组中比它小的所有数字的数目。 换 阅读全文
posted @ 2020-03-27 09:41 花花妹子。 阅读(215) 评论(0) 推荐(0) 编辑