![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
xxxxzr
hey
展开
-
【leetcode】347. Top K Frequent Elements
347. Top K Frequent Elementshttps://leetcode.com/problems/top-k-frequent-elements/?tab=Description Given a non-empty array of integers, return the k most frequent elements. For example, Given原创 2017-03-02 13:13:04 · 227 阅读 · 0 评论 -
【leetcode】383. Ransom Note
383. Ransom Notehttps://leetcode.com/problems/ransom-note/#/description Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will原创 2017-03-16 13:46:00 · 275 阅读 · 0 评论 -
【leetcode】532. K-diff Pairs in an Array
532. K-diff Pairs in an Arrayhttps://leetcode.com/problems/k-diff-pairs-in-an-array/#/description Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in th原创 2017-03-14 16:32:27 · 789 阅读 · 0 评论 -
【leetcode】312. Burst Balloons
312. Burst Balloonshttps://leetcode.com/problems/burst-balloons/#/description Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are a原创 2017-03-29 18:07:18 · 368 阅读 · 1 评论 -
【leetcode】53. Maximum Subarray
53. Maximum Subarrayhttps://leetcode.com/problems/maximum-subarray/#/description Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For exam原创 2017-03-27 19:56:46 · 207 阅读 · 0 评论 -
【leetcode】343. Integer Break
343. Integer Breakhttps://leetcode.com/problems/integer-break/#/description Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integ原创 2017-03-27 17:48:13 · 303 阅读 · 0 评论 -
【leetcode】380. Insert Delete GetRandom O(1)
380. Insert Delete GetRandom O(1)https://leetcode.com/problems/insert-delete-getrandom-o1/?tab=Description Design a data structure that supports all following operations in average O(1) time. in原创 2017-03-10 14:06:16 · 293 阅读 · 0 评论 -
【leetcode】92. Reverse Linked List II
92. Reverse Linked List IIhttps://leetcode.com/problems/reverse-linked-list-ii/?tab=Description Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given原创 2017-03-06 11:10:45 · 208 阅读 · 0 评论 -
【leetcode】203. Remove Linked List Elements
203. Remove Linked List Elementshttps://leetcode.com/problems/remove-linked-list-elements/?tab=Description Remove all elements from a linked list of integers that have value val. Example Give原创 2017-03-06 10:35:28 · 207 阅读 · 0 评论 -
【leetcode】312. Burst Balloons
312. Burst Balloonshttps://leetcode.com/problems/burst-balloons/?tab=Description Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You ar转载 2017-03-02 22:11:50 · 315 阅读 · 0 评论 -
【leetcode】312. Burst Balloons
312. Burst Balloonshttps://leetcode.com/problems/burst-balloons/?tab=Description Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You ar转载 2017-03-02 22:11:09 · 274 阅读 · 0 评论 -
【leetcode】328. Odd Even Linked List
328. Odd Even Linked Listhttps://leetcode.com/problems/odd-even-linked-list/?tab=Description 链表是弱项,要多训练。 Given a singly linked list, group all odd nodes together followed by the even nodes. Please n原创 2017-03-02 19:47:51 · 277 阅读 · 0 评论 -
【leetcode】94. Binary Tree Inorder Traversal
94. Binary Tree Inorder Traversalhttps://leetcode.com/problems/binary-tree-inorder-traversal/?tab=Description Given a binary tree, return the inorder traversal of its nodes’ values. For example:原创 2017-03-02 15:44:32 · 342 阅读 · 0 评论 -
【leetcode】13. Roman to Integer
13. Roman to Integerhttps://leetcode.com/problems/roman-to-integer/#/description Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.思路首先罗原创 2017-03-16 14:57:41 · 265 阅读 · 0 评论