摘要: 题目: Implement regular expression matching with support for '.' and '*'. 链接:http://leetcode.com/problems/regular-expression-matching/ 题解: 这道题也卡了很久,一开始就 阅读全文
posted @ 2015-04-15 23:51 YRB 阅读(971) 评论(0) 推荐(0)
摘要: 题目: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Could negative integers be palindromes? (ie, -1 阅读全文
posted @ 2015-04-15 22:13 YRB 阅读(333) 评论(0) 推荐(0)
摘要: 题目: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see be 阅读全文
posted @ 2015-04-15 22:02 YRB 阅读(377) 评论(0) 推荐(0)
摘要: 题目: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? He 阅读全文
posted @ 2015-04-15 21:54 YRB 阅读(1217) 评论(0) 推荐(0)
摘要: 题目: 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 f 阅读全文
posted @ 2015-04-15 21:51 YRB 阅读(429) 评论(0) 推荐(0)
摘要: 题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest... 阅读全文
posted @ 2015-04-15 20:26 YRB 阅读(534) 评论(0) 推荐(0)
摘要: 题目: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 should ... 阅读全文
posted @ 2015-04-15 20:23 YRB 阅读(558) 评论(0) 推荐(0)
摘要: 题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter 阅读全文
posted @ 2015-04-15 19:01 YRB 阅读(380) 评论(0) 推荐(0)
摘要: 题目: 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 sin 阅读全文
posted @ 2015-04-15 11:49 YRB 阅读(458) 评论(0) 推荐(0)
摘要: 题目: 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 the t 阅读全文
posted @ 2015-04-15 11:08 YRB 阅读(639) 评论(1) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2015-04-15 10:43 YRB 阅读(2) 评论(0) 推荐(0)