摘要: The problem: (The code of dynamic programming is very concise and elegant. You must learn it!)Given a stringS, find the longest palindromic substring ... 阅读全文
posted @ 2014-12-30 11:57 airforce 阅读(149) 评论(0) 推荐(0) 编辑
摘要: The problem: (This prolem include many programming skills in using recursion!!)Givennpairs of parentheses, write a function to generate all combinatio... 阅读全文
posted @ 2014-12-30 11:45 airforce 阅读(147) 评论(0) 推荐(0) 编辑
摘要: The quesiton:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in... 阅读全文
posted @ 2014-12-30 10:50 airforce 阅读(141) 评论(0) 推荐(0) 编辑
摘要: The question:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices ... 阅读全文
posted @ 2014-12-30 02:22 airforce 阅读(769) 评论(0) 推荐(0) 编辑
摘要: The 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 o... 阅读全文
posted @ 2014-12-30 02:04 airforce 阅读(137) 评论(0) 推荐(0) 编辑
摘要: The questions:Determine whether an integer is a palindrome. Do this without extra space.Analysis:To determine whether an integer is a palindrome, we c... 阅读全文
posted @ 2014-12-30 01:20 airforce 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Reverse a integer is a very common task we need to understand for being a good programmer. It is very easy at some aspects, however, it also needs a p... 阅读全文
posted @ 2014-12-30 00:59 airforce 阅读(2038) 评论(1) 推荐(0) 编辑