373

[LeetCode] LeetCode373. 查找和最小的K对数字

题目描述 思路:大顶堆+翻转 注意:该题有问题,代码可以通过测试用例。 方法一: class Solution { public List<List<Integer>> kSmallestPairs(int[] nums1, int[] nums2, int k) { PriorityQueue<N ......
LeetCode 数字 373

Leetcode 373周赛

周赛链接:https://leetcode.cn/contest/weekly-contest-373/ 100139. 循环移位后的矩阵相似检查 不需要判断奇数还是偶数,题目要求最后两个矩阵是否相同,那么向左循环移动和向右循环移动意义是一样的 奇数行右移k次,$$a[i]==a[(i + k) % ......
Leetcode 373

【题解】#373. 「USACO1.1」Friday the Thirteenth 题解(2023-07-19更新)

# #373. 「USACO1.1」Friday the Thirteenth 题解 **本文章的访问次数为![](https://counter.likepoems.com/get/@cnblogs17638596?theme=gelbooru)次**。 ## Part 1 提示 ### **[题 ......
题解 Thirteenth USACO1 Friday USACO

【题解】#373. 「USACO1.1」Friday the Thirteenth 题解(2023-07-01更新)

# #373. 「USACO1.1」Friday the Thirteenth 题解 ## **[题目传送门](https://qoj.fzoi.top/problem/373)** **欢迎大家指出错误并联系这个蒟蒻** ## 更新日志 - **2023-02-01 17:20 文章完成** - ......
题解 Thirteenth USACO1 Friday USACO

373. 查找和最小的 K 对数字 (Medium)

问题描述 373. 查找和最小的 K 对数字 (Medium) 给定两个以 升序排列 的整数数组 nums1 和 nums2, 以及 一个整数 k。 定义一对值 (u,v),其中第一个元素来自 nums1,第二个元素来 自 nums2。 请找到和最小的 k 个数对 (u₁,v₁), (u₂,v₂) ......
数字 Medium 373
共5篇  :1/1页 首页上一页1下一页尾页