[LeetCode] Two Sum, Solution

摘要: 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 two nu... 阅读全文
posted @ 2013-03-05 12:34 小刀初试 阅读(160) 评论(0) 推荐(0)

[LeetCode] Palindrome Partitioning II, Solution

摘要: Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ... 阅读全文
posted @ 2013-03-05 11:57 小刀初试 阅读(136) 评论(0) 推荐(0)