10 2015 档案

摘要:选择怀疑作为生活哲学就像选择静止作为交通方式。 的确,我们遇见的人可能改变我们,有时候改变如此深刻,在那之后我们成了完全不同的人,甚至我们的名字都不一样了。 声音会消失,但伤害却留了下来,像小便蒸发后留下的气味。 我什么也没说。并不是害怕触怒库马尔先生。我更害怕他随口说的几句话可能会... 阅读全文
posted @ 2015-10-30 19:59 江湖小妞 阅读(282) 评论(0) 推荐(0)
摘要:Question:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime c... 阅读全文
posted @ 2015-10-28 22:02 江湖小妞 阅读(196) 评论(0) 推荐(0)
摘要:(许久没做LeetCode了呢。最近有些心神不宁,没什么动力,不知道自己每天在干什么,想不通自己生存的意义,不知道自己真正喜欢的是什么。总之,平时不想的一些问题,一旦想到心情就会很low。)Question:You are playing the following Nim Game with yo... 阅读全文
posted @ 2015-10-28 21:39 江湖小妞 阅读(187) 评论(0) 推荐(0)
摘要:为什么要用参数估计?在贝叶斯方法中,要事先估计先验概率和条件密度函数,然后再设计分类器。但是多数情况下训练样本数总是太少,而且当用于表示特征维数较高时,对条件密度函数的估计就会计算复杂度较高。因此,如果我们已经事先知道参数的个数,并且先验知识允许我们能够把条件概率密度参数化,就可以使问题难度显著降低... 阅读全文
posted @ 2015-10-26 21:47 江湖小妞 阅读(1428) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-10-17 19:30 江湖小妞 阅读(12) 评论(0) 推荐(0)
摘要:Question:Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner ... 阅读全文
posted @ 2015-10-17 11:26 江湖小妞 阅读(302) 评论(0) 推荐(0)
摘要:每次在网上搜关于VS有哪些常用快捷键的时候,出来的永远是一串长的不能再长的列表,完全没体现出“常用”二字,每次看完前面几个就看不下去了,相信大家都 有这种感觉。其实我们平时用的真的只有很少的一部分,借用一句“二八原则”——其中20%的常用快捷键就可以完成你80%的任务了,当然这里20%不准 确,只是... 阅读全文
posted @ 2015-10-14 21:03 江湖小妞 阅读(243) 评论(0) 推荐(0)
摘要:时先去系统目录中找头文件,如果没有再到当前目录下找。所以像标准的头文件 stdio.h, stdlib.h等都用;""则首先到当前目录下找,如果找不到再到系统目录下找。当include自定义的头文件时,优先使用“”。 阅读全文
posted @ 2015-10-14 15:05 江湖小妞 阅读(219) 评论(0) 推荐(0)
摘要:_tmain()是为了支持Unicode所使用的main的一个别名,既然是别名,应该有宏定义过的,在里#include #indlude 我们可以在中找到_tmain()的宏定义#define _tmain main所以经过预编译后,_tmain就变成了main了。main()是标准的C++的函... 阅读全文
posted @ 2015-10-13 10:30 江湖小妞 阅读(432) 评论(0) 推荐(0)
摘要:最近做图像需要用到Matlab和OpenCV,一些东西真的是要深入的研究进去才会有所发现,但Matlab和C++都不是我擅长的语言,所以要很加油很加油才行啊!!步入正题。 1. 环境:Win7 64位 + Visual Studio 2013 Community + OpenCV 3.0.0 2. ... 阅读全文
posted @ 2015-10-13 10:01 江湖小妞 阅读(1735) 评论(0) 推荐(0)
摘要:Question:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the... 阅读全文
posted @ 2015-10-12 20:27 江湖小妞 阅读(337) 评论(0) 推荐(0)
摘要:今天无意间看到CSDN上一位大牛师姐的博客,真的是好惊讶啊!很多时候总是太过自以为是,以为自己做不到的事情别人也很难做到。恰恰相反,成功总是伴随那些谦逊、努力、认真的人的!曾几何时,自己或许也是一个认真?的人?可是成也萧何,败也萧何。我的失败就在于败在了该保留的品质慢慢消失,不该生成的习惯也已生... 阅读全文
posted @ 2015-10-11 09:45 江湖小妞 阅读(174) 评论(0) 推荐(0)
摘要:Question:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last... 阅读全文
posted @ 2015-10-07 19:15 江湖小妞 阅读(165) 评论(0) 推荐(0)
摘要:Question:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are fil... 阅读全文
posted @ 2015-10-05 16:42 江湖小妞 阅读(293) 评论(0) 推荐(0)
摘要:Question:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root... 阅读全文
posted @ 2015-10-05 15:21 江湖小妞 阅读(179) 评论(0) 推荐(0)
摘要:Question:Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary t... 阅读全文
posted @ 2015-10-05 10:27 江湖小妞 阅读(167) 评论(0) 推荐(0)
摘要:Question:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: ... 阅读全文
posted @ 2015-10-04 20:32 江湖小妞 阅读(171) 评论(0) 推荐(0)