![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
shy李大胆
挣扎的菜鸡
展开
-
leetcode 896:Monotonic Array
Monotonic Array,即单调排列的数组,先看题目:An array is monotonic if it is either monotone increasing or monotone decreasing.An array A is monotone increasing if for all i <= j, A[i] <= A[j]. An array A...原创 2018-09-13 16:40:07 · 218 阅读 · 0 评论 -
leetcode 347:Top K Frequent Elements .Python版
题目链接题目描述Given a non-empty array of integers, return the k most frequent elements.For example,Given [1,1,1,2,2,3] and k = 2, return [1,2].1.You may assume k is always valid, 1 ≤ k ≤ number of uni...原创 2018-11-08 10:06:59 · 143 阅读 · 0 评论