/** * ${bare_field_name} * * @return the ${bare_field_name} * @since CodingExample Ver(编码范例查看) 1.0 */ /** * @param ${param} the ${bar...
分类:
系统相关 时间:
2015-06-24 10:48:00
阅读次数:
194
区间按左端点排序,dp。#include#includeusing namespace std;#define N 1001struct Point{int l,r,w;}a[N];bool operator < (const Point &a,const Point &b){return a.l<...
分类:
其他好文 时间:
2015-06-24 10:44:07
阅读次数:
122
#include#include#includeusing namespace std;typedef double db;struct Point{int x,y,p;}p[101],path[101];int n,m,ans,apa[101];int sqr(int x){return x*x;...
分类:
Web程序 时间:
2015-06-24 10:37:41
阅读次数:
200
Search Insert Position
题目:
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may as...
分类:
其他好文 时间:
2015-06-24 09:23:34
阅读次数:
116
publicSparseBooleanArraygetCheckedItemPositions(){
if(mChoiceMode!=CHOICE_MODE_NONE){
returnmCheckStates;
}
returnnull;
}publicSparseBooleanArraygetCheckedItemPositions(){
if(mChoiceMode!=CHOICE_MODE_NONE){
returnmCheckStates;
}
returnnull;
}
分类:
其他好文 时间:
2015-06-23 23:17:20
阅读次数:
131
Given two integers n and k, return all possible combinations of k numbers out of 1 … n.For example,
If n = 4 and k = 2, a solution is:[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他好文 时间:
2015-06-23 23:15:54
阅读次数:
132
Leetcode 01 Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return in...
分类:
其他好文 时间:
2015-06-23 23:04:42
阅读次数:
126
//计算多项式a0+a1*x+a2*x^2+...+an*x^n#include #include int main(){ int ar[n]; for(i=0;i=0;i--) { p = p*x + a[i]; } return 0;}View Cod...
分类:
编程语言 时间:
2015-06-23 23:04:21
阅读次数:
155
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:
其他好文 时间:
2015-06-23 22:55:57
阅读次数:
141
问题描述:
【项目3-max带来的冲突】
分析下面程序出现的编译错误,给出解决的方案。
#include
using namespace std;
//定义函数模板
templateclass T>
T max(T a, T b)
{
return (a>b)?a:b;
}
int main()
{
int x=2,y=6;
double...
分类:
其他好文 时间:
2015-06-23 21:46:54
阅读次数:
168