摘要: LeetCode 786. K-th Smallest Prime Fraction 一道经典题,给出两种经典解法。 题目描述 You are given a sorted integer array arr containing 1 and prime numbers, where all the 阅读全文
posted @ 2021-04-03 17:36 与MPI做斗争 阅读(43) 评论(0) 推荐(0) 编辑
摘要: LeetCode 378. Kth Smallest Element in a Sorted Matrix 一道经典的二分查找的题目,特点在于查找对象从一位有序数组变成了二位行列有序数组。 题目描述 Given an n x n matrix where each of the rows and c 阅读全文
posted @ 2021-04-03 15:51 与MPI做斗争 阅读(52) 评论(0) 推荐(0) 编辑