
leetcode
chrispink_yang
To learn, to cope.
展开
-
leetcode:402. Remove K Digits
Remove K Digits Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible.Note: The length of num is less than 10002...原创 2018-03-12 17:07:49 · 246 阅读 · 0 评论 -
[Leetcode]84. Largest Rectangle in Histogram
84. Largest Rectangle in Histogram Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Abov...原创 2018-03-28 15:01:42 · 151 阅读 · 0 评论 -
[LeetCode]540. Single Element in a Sorted Array
540. Single Element in a Sorted Array Given a sorted array consisting of only integers where every element appears twice except for one element which appears once. Find this single element that ap...原创 2018-05-14 14:19:37 · 184 阅读 · 0 评论 -
[LeetCode]215. Kth Largest Element in an Array
找到数组中第k大的数 215. Kth Largest Element in an Arrayclass Solution: def findKthLargest(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """...原创 2018-06-01 15:22:14 · 110 阅读 · 0 评论