摘要:
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ... 阅读全文
posted @ 2015-09-30 14:08
momocoisapeach
阅读(148)
评论(0)
推荐(0)
摘要:
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo... 阅读全文
posted @ 2015-09-30 14:04
momocoisapeach
阅读(100)
评论(0)
推荐(0)
摘要:
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ... 阅读全文
posted @ 2015-09-30 14:03
momocoisapeach
阅读(97)
评论(0)
推荐(0)
摘要:
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBECODE... 阅读全文
posted @ 2015-09-30 10:18
momocoisapeach
阅读(106)
评论(0)
推荐(0)
摘要:
Longest Substring without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ... 阅读全文
posted @ 2015-09-30 09:03
momocoisapeach
阅读(111)
评论(0)
推荐(0)
摘要:
implement strStr()Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.brute forcedon’t overlook t... 阅读全文
posted @ 2015-09-30 08:41
momocoisapeach
阅读(123)
评论(0)
推荐(0)

浙公网安备 33010602011771号