摘要:
LeetCode 786. K-th Smallest Prime Fraction 一道经典题,给出两种经典解法。 题目描述 You are given a sorted integer array arr containing 1 and prime numbers, where all the 阅读全文
摘要:
LeetCode 378. Kth Smallest Element in a Sorted Matrix 一道经典的二分查找的题目,特点在于查找对象从一位有序数组变成了二位行列有序数组。 题目描述 Given an n x n matrix where each of the rows and c 阅读全文