.net中Web应用程序和web网站的区别ScenarioWeb Application ProjectWeb Site ProjectProject definition跟 Visual Studio .NET 2003 类似,由于项目文件的存在,只有被项目文件所引用的文件才会在Solution ...
分类:
Web程序 时间:
2014-10-17 11:31:17
阅读次数:
262
LeetCode:SubsetsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution...
分类:
其他好文 时间:
2014-10-17 10:27:24
阅读次数:
293
题目大意:
维护一棵初始有n个节点的有根树(根节点为1),树上节点编号为1-n,每个点有一个权值wi。
支持以下操作:
0 u x 询问以u为根的子树中,严格大于x的值的个数。(u^=lastans,x^=lastans)
1 u x 把u节点的权值改成x。(u^=lastans,x^=lastans)
2 u x 添...
分类:
其他好文 时间:
2014-10-17 10:19:42
阅读次数:
546
题意:自行脑补
做法:直接开权值那么多的二维树状数组暴力。
Code:
#include
#include
#include
#include
using namespace std;
inline int getc() {
static const int L = 1 << 15;
static char buf[L], *S = buf, *T = buf;...
分类:
Web程序 时间:
2014-10-17 10:17:17
阅读次数:
241
1、注意空字符串的处理;2、注意是alphanumeric字符;3、字符串添加字符直接用+就可以; 1 class Solution: 2 # @param s, a string 3 # @return a boolean 4 def isPalindrome(self, ...
分类:
其他好文 时间:
2014-10-17 01:34:53
阅读次数:
216
// 3SumClosest.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include#include #include using namespace std;class Solution {public: int threeSumClo...
分类:
其他好文 时间:
2014-10-17 00:28:43
阅读次数:
218
【题目】
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()...
分类:
其他好文 时间:
2014-10-16 17:12:42
阅读次数:
186
很眼熟。。。就是一个二分。。。class Solution {public: int findMin(vector &num) { int size = num.size() - 1; int l = 0; int r = size; w...
分类:
其他好文 时间:
2014-10-16 12:35:22
阅读次数:
180
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2014-10-16 01:27:21
阅读次数:
272
1 class Solution: 2 # @param s, a string 3 # @return a string 4 def reverseWords(self, s): 5 ss = s.split(" ") 6 ss = fil...
分类:
其他好文 时间:
2014-10-16 01:05:21
阅读次数:
146