码迷,mamicode.com
首页 >  
搜索关键字:generic algorithm    ( 18934个结果
验证码几个小例
例一:在网站要目录下添加ValidateCode.aspx,路径自己定。ValidateCode.aspx:ValidateCode.aspx.cs:using System;using System.Collections.Generic;using System.Web;using System...
分类:其他好文   时间:2014-05-27 01:03:47    阅读次数:430
c++ stl algorithm: std::fill, std::fill_n
std::fill 在[first, last)范围内填充值#include #include #include int main(){ std::vector v; v.resize(10); std::fill(v.begin(), v.end(), 100); retu...
分类:编程语言   时间:2014-05-24 05:15:36    阅读次数:320
在VisualStudio 2012上使用MVC3出现错误的解决办法
1. 错误:找不到方法:“System.Collections.Generic.Dictionary`2 System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords()”。解决方法:在web.config中删除:
分类:Web程序   时间:2014-05-24 01:34:56    阅读次数:1583
Algorithm for Maximum Subsequence Sum z
MSS(Array[],N)//Where N is the number of elements in array{sum=0; //current summax-sum=0;//Maximum Sumseq-start=0;//start of the subsequenceseq-end=0;...
分类:其他好文   时间:2014-05-23 11:03:58    阅读次数:221
Loader for loading embedded assemblies z
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Reflection;using System.Runtime.InteropServices;namespace...
分类:其他好文   时间:2014-05-23 10:59:24    阅读次数:223
C#多线程的简单例子
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;//using System.Threading.Tasks;using System.I...
分类:编程语言   时间:2014-05-19 20:01:31    阅读次数:258
LeetCode--Binary Tree Level Order Traversal
Binary Tree Level Order Traversal  Total Accepted: 12441 Total Submissions: 40879My Submissions Given a binary tree, return the level order traversal of its nodes' values. (ie, from left t...
分类:其他好文   时间:2014-05-18 10:11:13    阅读次数:337
[leetcode]:Two Sum
题目:给定一个数组,以及一个 target 值,target 表示目标和,要求在数组中找到两个数,xi,xj,使得 xi + xj = target。返回值是找到的两个数的下标索引,升序排序。假定至少存在一对解。 分析:对于要处理数组的问题,我们的理想状态都是给定的数组是有序的就好了,在有序后,我们就可以首位各放一个标记。类似于二分查找。 vector twoSum(vector &n...
分类:其他好文   时间:2014-05-18 08:04:03    阅读次数:234
apc smart UPS下使用apcupsd注意事项
公司的apc smart UPS安装有管理卡(似乎是AP-9631),服务器环境有FreeBSD、Windows Server、Linux(CentOS、Ubuntu) 实际使用中有如下问题需要注意: 1、一旦安装有管理卡,UPS上自带的串口是不能再使用的 2、因为是smart UPS,apcupsd在关闭服务器之后会调用重启ups指令,这就会有如下一些问题      a、如果apcups...
分类:其他好文   时间:2014-05-18 06:43:01    阅读次数:277
LeetCode--Symmetric Tree
对于本题,想到一个中序遍历后,判别是否为回文串的方法,却WA多次 class Solution { public: vector vectorValue; void inOrder(TreeNode* root) { if(root!=NULL) { inOrder(root->left);...
分类:其他好文   时间:2014-05-18 06:38:58    阅读次数:294
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!