描述:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the targ...
分类:
其他 时间:
2015-01-27 20:22:41
收藏:
0 评论:
0 赞:
0 阅读:
181
一:基础定义
1:颜色定义:
对于大多数计算机显示器来说,颜色信息的显示只是依靠三种光波的组合:红,绿,蓝.所以颜色可以用红,绿,蓝三元素表示,每个
分量都在0到1区间,颜色即能够代表光的光谱成分,也能代表光的强度.颜色可用和一个三维向量表示,有加法和乘法.
2:光源:
1):环境光:环境光是一种低强度的光,由光线...
分类:
其他 时间:
2015-01-27 20:22:32
收藏:
0 评论:
0 赞:
0 阅读:
257
最近一段时间,正在学习机器学习与模式识别,为了验证算法,仍然用了之前做过的项目的一些图片作为数据采集的样本,进行数据采集。前段时间,做了一个花生籽粒的识别程序,是基于SVM+HOG的,这次则是采用朴素贝叶斯来进行识别。采集了20个品种,每个品种50个样本,共1K个数据。
朴素贝叶斯分类器(Naive Bayes Classifier,或 NBC)发源于古典数学理论,有着坚实的数学基础,以及稳...
分类:
其他 时间:
2015-01-27 20:22:22
收藏:
0 评论:
0 赞:
0 阅读:
295
链接:click here
题意:叫你求一个数是另一个数的二倍的这样的组合有多少个。
思路:纯模拟,一重循环:读入当前数据组a,并累积数据元素个数n,循环的结束标志是读入数据0,两重循环结构枚举组内所有数据对a[i] a[j] 判断是否成两倍关系
代码:
#include
#include
#include
#include
#include
using namespace ...
分类:
其他 时间:
2015-01-27 20:22:12
收藏:
0 评论:
0 赞:
0 阅读:
219
描述:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse
order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
其他 时间:
2015-01-27 20:21:33
收藏:
0 评论:
0 赞:
0 阅读:
213
很简单的一步操作,是在python中运行,而不是一个python文件,找了好久~~~~...
分类:
其他 时间:
2015-01-27 20:21:26
收藏:
0 评论:
0 赞:
0 阅读:
191
类比二叉树先序遍历与图深度优先搜索
在引入图的深度优先搜索之前,为了更加容易理解.先考究一种特殊的图---二叉树的深度优先搜索算法---即二叉树的递归遍历方法.
二叉树的前序遍历算法:
void TreeWalk(node* root)
{
if(root)
{
visit(root);
...
分类:
其他 时间:
2015-01-27 20:20:22
收藏:
0 评论:
0 赞:
0 阅读:
260
Response容器是服务端返还给客户机的一个响应内容对象容器,比如说:响应头,响应行,实体数据等信息,而Request容器对象是,代表用户请求服务端的的一个容器对象,比如客户机的请求头,请求行,以及携带的参数信息等。所以说Request容器对象和Response容器对象是一一对应的...
分类:
其他 时间:
2015-01-27 20:20:12
收藏:
0 评论:
0 赞:
0 阅读:
261
题目地址:POJ 1681
跟前两题几乎一模一样的。。。不多说了。高斯消元+自由元枚举。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define LL __int64
#define pi acos(...
分类:
其他 时间:
2015-01-27 20:20:02
收藏:
0 评论:
0 赞:
0 阅读:
249
描述:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is ...
分类:
其他 时间:
2015-01-27 20:19:52
收藏:
0 评论:
0 赞:
0 阅读:
266
操作系统(一)—宏观导论
系统,对这词并不陌生,每天一来机房一开电脑就会接触到系统。我们有现在用的
Windows 系统、之前了解过虚拟机系统、Linux系统等等这都属于操作系统范畴。《操
作系统概论》这本教程很薄,主要还是介绍一些基本的概念和基本的原理等偏文科的一
些识记的东西。
操作系统(Operating System,简称OS)是管理和控制计...
分类:
其他 时间:
2015-01-27 20:19:22
收藏:
0 评论:
0 赞:
0 阅读:
292
描述:
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
思路:
刚开始非常天...
分类:
其他 时间:
2015-01-27 20:19:11
收藏:
0 评论:
0 赞:
0 阅读:
321
事件委托例子:using System;using System.Drawing;using System.Windows.Forms;namespace 跨窗体调用控件{ public partial class Form1 : Form { public Form1()...
分类:
其他 时间:
2015-01-27 20:17:21
收藏:
0 评论:
0 赞:
0 阅读:
207
当你正在运行一个公共的站点的时候,你应该关掉DEBUG设置。这将使你的服务器运行的更快,同时也能预防别有用心的用户从你的错误页面看到你应用的一些详细配置信息。然而,当debug为false的时候,你将永远看不到由你的站点产生的错误--所有人都只能看到你的公开的错误页面。出于你必须跟踪你部署的站点的错...
分类:
其他 时间:
2015-01-27 20:17:11
收藏:
0 评论:
0 赞:
0 阅读:
316
早在大二时,导师做过一个花生品种识别的程序,但当时用于品种识别的特征是自定义特征;而我的当初的本科毕业设计则是基于SVM + HOG的人脸识别;在后来的工作学习中,又用到了HOG特征,想着是不是之前的花生品种的识别也能用Hog特征进行识别;正所谓学以致用,也能巩固下刚刚所学的知识;所谓的Hog特征与...
分类:
其他 时间:
2015-01-27 20:16:41
收藏:
0 评论:
0 赞:
0 阅读:
272
NOTE:看来Android文档过来做个笔记,并没有详细去写这些东西。BitmapFactory提供的decode方法直接去decode的话,会造成oom异常。要设置BitmapFactory.Options 的inJustDecodeBounds为true。将图片信息decode出来,此时并没有真...
分类:
其他 时间:
2015-01-27 20:16:11
收藏:
0 评论:
0 赞:
0 阅读:
218
1.一种思想:为防止数据在传输过程中丢失,可以将考虑将数据放到一个中间件中,如:数据库,ActiveMQ2. Santiago是红帽企业级Linux 6 的代号。
分类:
其他 时间:
2015-01-27 20:14:21
收藏:
0 评论:
0 赞:
0 阅读:
264
【git教程】以前在网上找过一些,见http://www.wojilu.com/Forum1/Topic/702我自己会一边学,一边写教程,过程中有不明白的,会跟大家请教交流。--------------------------------注册官网:https://github.com/ 点击网站首...
分类:
其他 时间:
2015-01-27 20:14:01
收藏:
0 评论:
0 赞:
0 阅读:
278
【Lamda所有的Capture均是引用】 下面的程序,两个lambda 引用的实际上是同一个a、b。连int都能引用了,说明Lambda对所有类型都是以引用来处理。 1 int a = 0; 2 int b = 1; 3 Func exe = ()=>{ 4 ...
分类:
其他 时间:
2015-01-27 20:13:51
收藏:
0 评论:
0 赞:
0 阅读:
275
原题地址找规律+模拟,真没啥可说的。代码: 1 string intToRoman(int num) { 2 string res; 3 4 while (num >= 1000) { 5 res += "M"; 6 ...
分类:
其他 时间:
2015-01-27 20:13:41
收藏:
0 评论:
0 赞:
0 阅读:
214