随笔分类 -  LeetCode

上一页 1 ··· 5 6 7 8 9
leetcode第11题--Container With Most Water
摘要:Problem:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpo... 阅读全文
posted @ 2014-10-15 00:07 higerzhang 阅读(455) 评论(0) 推荐(0)
leetcode第十题--Regular Expression Matching
摘要:Problem:Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the precedin... 阅读全文
posted @ 2014-10-14 00:30 higerzhang 阅读(450) 评论(0) 推荐(0)
leetcode第九题--Palindrome Number
摘要:Problem:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindr... 阅读全文
posted @ 2014-10-13 10:08 higerzhang 阅读(179) 评论(0) 推荐(0)
leetcode第八题--String to Integer (atoi)
摘要:Problem:Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see be... 阅读全文
posted @ 2014-10-13 00:15 higerzhang 阅读(290) 评论(1) 推荐(0)
leetcode第七题--Reverse Integer
摘要:Problem:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321终于什么都没参考就一次Accept了。可能是这题比较简单,同时自己也进步了一点点,leetcode就是这样给我... 阅读全文
posted @ 2014-10-12 21:02 higerzhang 阅读(342) 评论(1) 推荐(0)
leetcode第六题--ZigZag Conversion
摘要:Problem: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... 阅读全文
posted @ 2014-10-11 23:29 higerzhang 阅读(359) 评论(0) 推荐(0)
leetcode第五题--Longest Palindromic Substring
摘要:Problem:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique lo... 阅读全文
posted @ 2014-10-10 23:49 higerzhang 阅读(309) 评论(0) 推荐(0)
leetcode第四题--Add Two Numbers
摘要:Problem: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... 阅读全文
posted @ 2014-10-09 23:44 higerzhang 阅读(233) 评论(0) 推荐(0)
leetcode第三题--Longest Substring Without Repeating Characters
摘要:Problem:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating le... 阅读全文
posted @ 2014-10-08 23:51 higerzhang 阅读(430) 评论(0) 推荐(0)
leetcode第二题--Median of Two Sorted Arrays
摘要:Problem:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh... 阅读全文
posted @ 2014-10-07 23:10 higerzhang 阅读(419) 评论(0) 推荐(0)
leetcode第一题--two sum
摘要:Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of th... 阅读全文
posted @ 2014-09-30 21:44 higerzhang 阅读(395) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9