上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 108 下一页

2021年2月7日

摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805526272000000 题目大意是 输入两个多项式的变量参数和变量指数 按照指定规则显示出来 Sample Input: 2 1 2.4 0 3.2 2 2 1. 阅读全文
posted @ 2021-02-07 23:42 itdef 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805528788582400 Calculate a+b and output the sum in standard format -- that is, the d 阅读全文
posted @ 2021-02-07 23:34 itdef 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/sum-of-unique-elements/ 给你一个整数数组 nums 。数组中唯一元素是那些只出现 恰好一次 的元素。 请你返回 nums 中唯一元素的 和 。 示例 1: 输入:nums = [1,2,3,2] 输出:4 阅读全文
posted @ 2021-02-07 12:51 itdef 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/maximum-absolute-sum-of-any-subarray/ 给你一个整数数组 nums 。一个子数组 [numsl, numsl+1, ..., numsr-1, numsr] 的 和的绝对值 为 abs(num 阅读全文
posted @ 2021-02-07 12:49 itdef 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/minimum-length-of-string-after-deleting-similar-ends/ 给你一个只包含字符 'a','b' 和 'c' 的字符串 s ,你可以执行下面这个操作(5 个步骤)任意次: 选择字符串 阅读全文
posted @ 2021-02-07 12:47 itdef 阅读(77) 评论(0) 推荐(0) 编辑

2021年2月6日

摘要: 地址 https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof/ 定义一个函数,输入一个链表的头节点,反转该链表并输出反转后链表的头节点。 示例: 输入: 1->2->3->4->5->NULL 输出: 5->4->3->2->1->NULL 阅读全文
posted @ 2021-02-06 17:13 itdef 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/ 输入一个链表,输出该链表中倒数第k个节点。为了符合大多数人的习惯,本题从1开始计数,即链表的尾节点是倒数第1个节点。 例如,一个链表有 阅读全文
posted @ 2021-02-06 16:05 itdef 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/ 找出数组中重复的数字。 在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也 阅读全文
posted @ 2021-02-06 15:15 itdef 阅读(122) 评论(0) 推荐(0) 编辑

2021年2月5日

摘要: 地址 https://leetcode-cn.com/problems/latest-time-by-replacing-hidden-digits/ 给你一个字符串 time ,格式为 hh:mm(小时:分钟),其中某几位数字被隐藏(用 ? 表示)。 有效的时间为 00:00 到 23:59 之间 阅读全文
posted @ 2021-02-05 18:58 itdef 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/magnetic-force-between-two-balls/ 在代号为 C-137 的地球上,Rick 发现如果他将两个球放在他新发明的篮子里,它们之间会形成特殊形式的磁力。 Rick 有 n 个空的篮子,第 i 个篮子的 阅读全文
posted @ 2021-02-05 12:55 itdef 阅读(145) 评论(0) 推荐(0) 编辑
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 108 下一页

导航