摘要:
题目大意: Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... For example, given nums = [3, 5, 2, 1, 阅读全文
摘要:
题目链接:https://leetcode.com/problems/h-index/ 题目大意:其实就是求最大的h,能够保证研究员的h篇paper,每篇至少都有h篇引用,要求最大的h 解析: 比较容易想到的就是先对paper按照引用数进行递减排序 首先设定h = 0, 如果当前paper的引用数> 阅读全文
摘要:
记住的单词: eavesdrop:偷听,窃听 ing和ed的区别 The main difference is that –ing adjectives are usually used to talk about the person, place or thing that is making 阅读全文