摘要:
地址:https://leetcode-cn.com/problems/decompress-run-length-encoded-list/ <?php /** 给你一个以行程长度编码压缩的整数列表 nums 。 考虑每对相邻的两个元素 freq, val] = [nums[2*i], nums[ 阅读全文
posted @ 2020-03-28 20:02
花花妹子。
阅读(159)
评论(0)
推荐(0)
摘要:
地址:https://leetcode-cn.com/problems/create-target-array-in-the-given-order/ <?php /** 给你两个整数数组 nums 和 index。你需要按照以下规则创建目标数组: 目标数组 target 最初为空。 按从左到右的顺 阅读全文
posted @ 2020-03-28 19:48
花花妹子。
阅读(145)
评论(0)
推荐(0)
摘要:
地址:https://leetcode-cn.com/problems/find-numbers-with-even-number-of-digits/ <?php /** 给你一个整数数组 nums,请你返回其中位数为 偶数 的数字的个数。 示例 1: 输入:nums = [12,345,2,6, 阅读全文
posted @ 2020-03-28 13:10
花花妹子。
阅读(242)
评论(0)
推荐(0)
摘要:
地址:https://leetcode-cn.com/problems/qiu-12n-lcof/ <?php /** 求 1+2+...+n ,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 示例 1: 输入: n = 3 输出 阅读全文
posted @ 2020-03-28 10:08
花花妹子。
阅读(112)
评论(0)
推荐(0)
摘要:
d地址:https://leetcode-cn.com/problems/x-of-a-kind-in-a-deck-of-cards/ <?php /** 给定一副牌,每张牌上都写着一个整数。 此时,你需要选定一个数字 X,使我们可以将整副牌按下述规则分成 1 组或更多组: 每组都有 X 张牌。 阅读全文
posted @ 2020-03-28 09:52
花花妹子。
阅读(146)
评论(0)
推荐(0)


浙公网安备 33010602011771号