Palindrome Partitioning IIGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a p...
分类:
其他好文 时间:
2015-01-01 16:00:58
阅读次数:
164
无向图最小边割stoer-wagner算法准确,简洁,高效模板!!...
分类:
其他好文 时间:
2015-01-01 00:14:01
阅读次数:
141
Given an array of integers, find the subarray with smallest sum.Return the sum of the subarray.NoteThe subarray should contain at least one integer.Ex...
分类:
其他好文 时间:
2015-01-01 00:08:45
阅读次数:
135
二分,各种情况。class Solution {public: int findMin(vector &num) { int size = num.size(); int minVal = num[size-1]; findMinRe(num, 0, ...
分类:
其他好文 时间:
2015-01-01 00:00:40
阅读次数:
218
题目:(HashTable Two Point String)Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity ...
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:
其他好文 时间:
2014-12-30 16:38:28
阅读次数:
194
Find Minimum in Rotated Sorted Array
Total Accepted: 21207
Total Submissions: 65855
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might bec...
分类:
其他好文 时间:
2014-12-30 07:06:33
阅读次数:
166
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2014-12-30 06:59:26
阅读次数:
131
Edit DistanceGiven two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You...
分类:
其他好文 时间:
2014-12-28 19:26:42
阅读次数:
108
一 设置Meta标签首先我们在使用Media的时候需要先设置下面这段代码,来兼容移动设备的展示效果:这段代码的几个参数解释:? width = device-width:宽度等于当前设备的宽度? initial-scale:初始的缩放比例(默认设置为1.0)? minimum-scale:允许用户缩...
分类:
其他好文 时间:
2014-12-28 18:10:43
阅读次数:
208