上一页 1 ··· 19 20 21 22 23
摘要: Implement atoi to convert a string to an integer. 阅读全文
posted @ 2014-06-26 19:10 jdflyfly 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer. 阅读全文
posted @ 2014-06-26 19:09 jdflyfly 阅读(155) 评论(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 font for better legibility) 阅读全文
posted @ 2014-06-26 19:08 jdflyfly 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 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. 阅读全文
posted @ 2014-06-26 19:07 jdflyfly 阅读(679) 评论(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 single digit. Add the two numbers and return it as a linked list. 阅读全文
posted @ 2014-06-26 19:05 jdflyfly 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 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 3. For "bbbbb" the longest substring is "b", with the length of 1. 阅读全文
posted @ 2014-06-26 19:01 jdflyfly 阅读(171) 评论(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 be O(log (m+n)). 阅读全文
posted @ 2014-06-26 18:59 jdflyfly 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, find two numbers such that they add up to a specific target number. 阅读全文
posted @ 2014-06-26 18:55 jdflyfly 阅读(280) 评论(1) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23