![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
文章平均质量分 60
yottapeng
这个作者很懒,什么都没留下…
展开
-
Leetcode难度
转载自:LeetCode Question Difficulty Distribution 1Two Sum25arraysort setTwo Poin转载 2014-05-03 19:53:52 · 599 阅读 · 0 评论 -
leetcode-Maximum Gap
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 if the array contains less than 2 elements原创 2014-12-14 09:21:42 · 1545 阅读 · 1 评论 -
leetcode18-Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:Digit stri原创 2014-08-27 20:07:58 · 456 阅读 · 0 评论 -
leetcode19-Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the l原创 2014-08-27 20:51:50 · 438 阅读 · 0 评论 -
leetcode20-Valid Parentheses
Given a string containing just the characters '(', ')','{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid b原创 2014-08-27 21:18:20 · 413 阅读 · 0 评论 -
leetcode7-Reverse Integer
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321原创 2014-07-17 20:45:19 · 434 阅读 · 0 评论 -
leetcode6-ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I原创 2014-07-17 20:34:48 · 444 阅读 · 0 评论 -
leetcode5-Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.class Solution {p原创 2014-07-17 11:07:31 · 450 阅读 · 0 评论 -
leetcode4-Add Two Num
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link原创 2014-07-17 09:18:44 · 455 阅读 · 0 评论 -
leetcode-Minimum Size Subarray Sum
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead.For example, given the array [2,3原创 2015-05-12 10:01:07 · 770 阅读 · 0 评论