码迷,mamicode.com
首页 >  
搜索关键字:解题报告    ( 2279个结果
LeetCode: Valid Parentheses 解题报告
Valid Parentheses Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets m...
分类:其他好文   时间:2014-10-26 22:31:27    阅读次数:438
LeetCode: Merge Intervals 解题报告
Merge IntervalsGiven a collection of intervals, merge all overlapping intervals.For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,1...
分类:其他好文   时间:2014-10-26 21:04:46    阅读次数:199
【LeetCode】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 N ...
分类:其他好文   时间:2014-10-26 16:57:47    阅读次数:182
【LeetCode】Longest Palindromic Substring 解题报告
DP、KMP什么的都太高大上了,自己想了个朴素的遍历方法。 【题目】 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 palin...
分类:其他好文   时间:2014-10-26 15:37:32    阅读次数:249
【LeetCode】Add Two Numbers 解题报告
【题目】 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...
分类:其他好文   时间:2014-10-26 14:21:29    阅读次数:243
【LeetCode】Longest Substring Without Repeating Characters 解题报告
【题意】 Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is...
分类:其他好文   时间:2014-10-26 11:49:53    阅读次数:203
LeetCode: Longest Consecutive Sequence 解题报告
Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, ...
分类:其他好文   时间:2014-10-26 11:40:45    阅读次数:111
LeetCode: Rotate Image 解题报告
Rotate ImageYou are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?SOL...
分类:其他好文   时间:2014-10-25 21:29:02    阅读次数:317
【LeetCode】Search in Rotated Sorted Array 解题报告
【题目】 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the a...
分类:其他好文   时间:2014-10-25 17:20:39    阅读次数:225
LeetCode: Divide Two Integers 解题报告
Divide Two IntegersDivide two integers without using multiplication, division and mod operator.SOLUTION 11. 基本思想是不断地减掉除数,直到为0为止。但是这样会太慢。2. 我们可以使用2分法来加...
分类:其他好文   时间:2014-10-24 22:02:06    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!