摘要:
The problem: (The code of dynamic programming is very concise and elegant. You must learn it!)Given a stringS, find the longest palindromic substring ... 阅读全文
摘要:
The problem: (This prolem include many programming skills in using recursion!!)Givennpairs of parentheses, write a function to generate all combinatio... 阅读全文
摘要:
The quesiton:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文