摘要: Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文
posted @ 2016-01-04 10:45 Hygeia 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers that is alreadysorted in ascending order, find two numbers such that they add up to a specific target number.The function t... 阅读全文
posted @ 2016-01-04 07:26 Hygeia 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given an array ofnintegersnumsand atarget, find the number of index tripletsi, j, kwith0 <= i < j < k < nthat satisfy the conditionnums[i] + nums[j] +... 阅读全文
posted @ 2016-01-04 06:28 Hygeia 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Given twosparse matricesAandB, return the result ofAB.You may assume thatA's column number is equal toB's row number.Example:A = [ [ 1, 0, 0], [-1, ... 阅读全文
posted @ 2016-01-04 05:24 Hygeia 阅读(181) 评论(0) 推荐(0) 编辑