码迷,mamicode.com
首页 >  
搜索关键字:algorithm constraints check failedmd5: withrsa    ( 21275个结果
php给图片加水印
这一篇我们来看看那如何给图片添加水印,其实是把原图片和水印图片合并在一起。先看文件check_image_addwatermark.php代码 Here is your pic! Your image...
分类:Web程序   时间:2014-05-27 01:09:05    阅读次数:338
PHP根据图片制作缩略图
php中制作缩略图的方法也很简单,是用imagecopyresampled方法根据源图制作一个小一点的图片,来看代码check_image_addthumbs.php Here is your pic! ...
分类:Web程序   时间:2014-05-27 01:03:23    阅读次数:407
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
LeetCode OJ - Same Tree
题目:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical...
分类:其他好文   时间:2014-05-23 12:40:21    阅读次数:352
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
leetcode:3sum closet
题目:给一个数组和给定的目标值,要求在数组里找出三个元素,这三个元素的和最接近目标值,当然等于是最好的。 用3sum的方法,把判定条件作些修改。 int twoSum(vector &num, int start, int target) { if(num.size() = num.size()) return -target; int head = start; int t...
分类:其他好文   时间:2014-05-18 10:49:12    阅读次数:217
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
迷上了代码!