上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 127 下一页

2021年11月7日

摘要: 地址 https://leetcode-cn.com/problems/contains-duplicate/ 给定一个整数数组,判断是否存在重复元素。 如果存在一值在数组中出现至少两次,函数返回 true 。 如果数组中每个元素都不相同,则返回 false 。 示例 1: 输入: [1,2,3,1 阅读全文
posted @ 2021-11-07 18:20 itdef 阅读(114) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/intersection-of-two-linked-lists/ 给你两个单链表的头节点 headA 和 headB ,请你找出并返回两个单链表相交的起始节点。 如果两个链表没有交点,返回 null 。 图示两个链表在节点 c 阅读全文
posted @ 2021-11-07 16:46 itdef 阅读(140) 评论(0) 推荐(0)

2021年11月2日

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

2021年10月31日

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

2021年10月24日

摘要: 地址 https://ac.nowcoder.com/acm/contest/1036/A 您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作: 插入数值 x。 删除数值 x(若有多个相同的数,应只删除一个)。 查询数值 x 的排名(若有多个相同的数,应输出最小的排名)。 查 阅读全文
posted @ 2021-10-24 10:47 itdef 阅读(81) 评论(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 阅读(90) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 127 下一页

导航