Discription As you must know, the maximum clique problem in an arbitrary graph is NP-hard. Nevertheless, for some graphs of specific kinds it can be s ...
分类:
其他好文 时间:
2018-04-26 12:04:33
阅读次数:
168
Charm Bracelet Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 45191 Accepted: 19318 Description Bessie has gone to the mall's jewelry stor ...
分类:
其他好文 时间:
2018-04-25 17:04:22
阅读次数:
131
Rectangle Area Total Accepted: 2205 Total Submissions: 8138 Find the total area covered by two rectilinear rectangles in a2D plane. Each rectangle is ...
分类:
其他好文 时间:
2018-04-25 10:56:06
阅读次数:
151
该题是要找出树的最大深度,代码如下: END ...
分类:
其他好文 时间:
2018-04-24 11:07:18
阅读次数:
143
[抄题]: Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) a ...
分类:
编程语言 时间:
2018-04-23 00:12:44
阅读次数:
193
详见:https://leetcode.com/problems/longest-uncommon-subsequence-ii/description/ C++: 方法一: 方法二: 参考:http://www.cnblogs.com/grandyang/p/6680548.html ...
分类:
其他好文 时间:
2018-04-22 21:47:24
阅读次数:
475
给定两个字符串,你需要从这两个字符串中找出最长的特殊序列。最长特殊序列定义如下:该序列为某字符串独有的最长子序列(即不能是其他字符串的子序列)。子序列可以通过删去字符串中的某些字符实现,但不能改变剩余字符的相对顺序。空序列为所有字符串的子序列,任何字符串为其自身的子序列。输入为两个字符串,输出最长特 ...
分类:
其他好文 时间:
2018-04-22 18:12:37
阅读次数:
125
给定一个字符串s,找到其中最长的回文子序列。可以假设s的最大长度为1000。 详见:https://leetcode.com/problems/longest-palindromic-subsequence/description/ C++: 参考:http://www.cnblogs.com/gr ...
分类:
其他好文 时间:
2018-04-22 17:18:26
阅读次数:
133
移动设备优先:<metaname="viewport"content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">媒体标签:@mediascreenand(min-width:100px){div{width:100px;height:1000px;background:yellow;}}完
分类:
Web程序 时间:
2018-04-22 12:46:54
阅读次数:
255
[抄题]: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to outp ...
分类:
编程语言 时间:
2018-04-21 22:52:21
阅读次数:
299