上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 127 下一页

2021年2月10日

摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805519074574336 题目大意是 输入一个很大的非负整数 0 <= N <= 10100 要求我们把该数的每位上的数字相加,并且按照英文输出每位上的数字 输入样 阅读全文
posted @ 2021-02-10 16:46 itdef 阅读(143) 评论(0) 推荐(0)
摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805521431773184 一个多叉树的题目 给与我们两个整数N M 整数 N 表示树中结点总数 ,整数 M 表示非叶子结点数。根节点数序号01 接下来M行 每行输入 阅读全文
posted @ 2021-02-10 12:10 itdef 阅读(131) 评论(0) 推荐(0)

2021年2月9日

摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805509540921344 解答 代码模拟初中时候的多项式乘法 也就是使用double数组存储多项式 指数就是系数在数组中的下标 2.7 * x1 就是 double 阅读全文
posted @ 2021-02-09 22:29 itdef 阅读(121) 评论(0) 推荐(0)
摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805523835109376 题目的大意是 输入一群城市之间(0~n-1)的路径和该城市拥有的救援队数目,再给与你起点城市的编号和终点城市的编号, 请输出起点到终点城市 阅读全文
posted @ 2021-02-09 17:58 itdef 阅读(192) 评论(0) 推荐(0)

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 阅读(105) 评论(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 阅读(131) 评论(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 阅读(137) 评论(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 阅读(220) 评论(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 阅读(127) 评论(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 阅读(146) 评论(0) 推荐(0)
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 127 下一页

导航