摘要:
Problem:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba”,T is "ece... 阅读全文
posted @ 2015-09-10 11:27
airforce
阅读(183)
评论(0)
推荐(0)
摘要:
Problem:A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).Write a function to determine if a n... 阅读全文
posted @ 2015-09-10 09:37
airforce
阅读(178)
评论(0)
推荐(0)
摘要:
Problem:Given a sorted integer array where the range of elements are [lower,upper] inclusive, return its missing ranges.For example, given[0, 1, 3, 50... 阅读全文
posted @ 2015-09-10 08:43
airforce
阅读(416)
评论(0)
推荐(0)
摘要:
Problem:Given a string, determine if a permutation of the string could form a palindrome.For example,"code"-> False,"aab"-> True,"carerac"-> True.Gene... 阅读全文
posted @ 2015-09-10 07:34
airforce
阅读(861)
评论(0)
推荐(0)
摘要:
Problem:There is a fence with n posts, each post can be painted with one of the k colors.You have to paint all the posts such that no more than two ad... 阅读全文
posted @ 2015-09-10 06:49
airforce
阅读(1631)
评论(0)
推荐(1)

浙公网安备 33010602011771号