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

2021年11月2日

摘要: 地址 https://leetcode-cn.com/problems/out-of-boundary-paths/ 给你一个大小为 m x n 的网格和一个球。球的起始坐标为 [startRow, startColumn] 。 你可以将球移到在四个方向上相邻的单元格内(可以穿过网格边界到达网格之外 阅读全文
posted @ 2021-11-02 10:13 itdef 阅读(59) 评论(0) 推荐(0)

2021年11月1日

摘要: 地址 https://leetcode-cn.com/problems/product-of-array-except-self/ 给你一个长度为 n 的整数数组 nums,其中 n > 1,返回输出数组 output , 其中 output[i] 等于 nums 中除 nums[i] 之外其余各元 阅读全文
posted @ 2021-11-01 13:50 itdef 阅读(84) 评论(0) 推荐(0)

2021年10月31日

摘要: 地址 https://leetcode-cn.com/problems/gray-code/ 格雷编码是一个二进制数字系统,在该系统中,两个连续的数值仅有一个位数的差异。 给定一个代表编码总位数的非负整数 n,打印其格雷编码序列。即使有多个不同答案,你也只需要返回其中一种。 格雷编码序列必须以 0 阅读全文
posted @ 2021-10-31 16:11 itdef 阅读(127) 评论(0) 推荐(0)

2021年10月30日

摘要: 地址 https://leetcode-cn.com/problems/multiply-strings/ 给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。 示例 1: 输入: num1 = "2", num2 = "3 阅读全文
posted @ 2021-10-30 22:09 itdef 阅读(52) 评论(0) 推荐(0)

2021年10月27日

摘要: 地址 https://leetcode-cn.com/problems/merge-k-sorted-lists/ 给你一个链表数组,每个链表都已经按升序排列。 请你将所有链表合并到一个升序链表中,返回合并后的链表。 示例 1: 输入:lists = [[1,4,5],[1,3,4],[2,6]] 阅读全文
posted @ 2021-10-27 21:33 itdef 阅读(129) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/median-of-two-sorted-arrays/ 给定两个大小分别为 m 和 n 的正序(从小到大)数组 nums1 和 nums2。请你找出并返回这两个正序数组的 中位数 。 示例 1: 输入:nums1 = [1,3 阅读全文
posted @ 2021-10-27 14:21 itdef 阅读(453) 评论(0) 推荐(0)

2021年10月24日

摘要: 地址 https://ac.nowcoder.com/acm/contest/1036/A 您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作: 插入数值 x。 删除数值 x(若有多个相同的数,应只删除一个)。 查询数值 x 的排名(若有多个相同的数,应输出最小的排名)。 查 阅读全文
posted @ 2021-10-24 10:47 itdef 阅读(42) 评论(0) 推荐(0)

2021年10月8日

摘要: poj 2777 https://vjudge.net/problem/POJ-2777 Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of p 阅读全文
posted @ 2021-10-08 16:26 itdef 阅读(57) 评论(0) 推荐(0)

2021年10月5日

摘要: 地址 https://vjudge.ppsucxtt.cn/problem/POJ-3468 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of opera 阅读全文
posted @ 2021-10-05 14:13 itdef 阅读(37) 评论(0) 推荐(0)

2021年10月4日

摘要: 地址 https://vjudge.ppsucxtt.cn/problem/HDU-2087 一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input 输入中含有一些数据,分别是成对出现的花布条和小饰条 阅读全文
posted @ 2021-10-04 11:32 itdef 阅读(75) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 125 下一页

导航