
--3.5Java
XuRuiIsCoding
这个作者很懒,什么都没留下…
展开
-
Leetcode - 75 - sortColors
题目 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the int...原创 2017-11-09 17:28:43 · 265 阅读 · 0 评论 -
Leetcode - 215 - Kth Largest Element in an Array
题目: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For example, Given [3,2,1,5,6,4] and k = 2, ret...原创 2017-11-10 12:34:28 · 376 阅读 · 0 评论 -
Leetcode - 209 - minSubArrary
题目: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t one, return 0 instead. For example, give...原创 2017-11-10 15:38:18 · 464 阅读 · 0 评论