摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama"is a palindrome."race a car"isnota palindrome.Note:Have you consider that the string might be empty? This is a good question to 阅读全文
posted @ 2013-11-10 14:02 假日笛声 阅读(460) 评论(0) 推荐(0) 编辑
摘要: Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space to hold additional elements from B. The number of elements initialized in A and B aremandnrespectively.Summary: It's easy, but should be careful about corner cases, like m is 0 阅读全文
posted @ 2013-11-10 05:53 假日笛声 阅读(365) 评论(0) 推荐(0) 编辑