自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(39)
  • 资源 (10)
  • 收藏
  • 关注

原创 python+pandas+scipy+numpy

Pandas DataFrame to sparse matrix or scipy.sparse.csc.csc_matrixscipy.sparse.csr_matrix(df.values)

2017-04-26 10:31:36 867

转载 日常看到的一些好的文章地址收集

计算广告概述 广告点击率预估是怎么回事? 数据驱动智能(计算广告) 计算广告视频 深入FFM原理与实践线性代数统计学期望、方差、协方差及相关系数的基本运算算法一致性哈希算法及其在分布式系统中的应用机器学习个人主站ckboss tornadomeet charlotte77 csuldw论文计算广告:以数据为核心的web综合应用 RTB论文集 计算机学报主页

2017-03-29 10:44:03 1127

原创 Java 多线程中。两个线程交替执行,一个输出偶数,一个输出奇数

描述 两个线程,一个打印100内的奇数一个打印100内的偶数,交替执行。//要打印的资源public class Num { int i=1; boolean flag = false; //两个线程,交替执行的一个标志}//打印奇数的线程public class PrintQi implements Runnable{ Num num ; public

2016-07-24 14:16:49 30238 4

原创 触宝笔试面试回忆版(不完整)-16暑期实习

选择题1、进制转换 15*5=114是进制 不要把15*5理解为10进制,这个的进制和114进制是一样的2、c++ new出来的存在什么地方 堆区3、http协议,TCP与UDP区别,且位于7层模型哪一层 http协议详解,请仔细看此文 TCP与UDP区别 TCP与UDP区别-1 TCP与UDP区别-2 OSI七层与TCP/IP

2016-07-12 09:18:46 4271

原创 Exam 1 Character Recognition - Works Application 16

Character RecognitionDescription Character recognition is the conversion of images into text. For now we consider each character in the picture is a N*M matrix with only zeros and ones, and we

2016-06-08 20:34:56 4080 3

原创 Exam 2 Maximum Xor with Prefix and Suffix - Works Application 16

Maximum Xor with Prefix and SuffixDescription We have N numbers as an array, you need to find a prefix array and a suffix arrar,which we can get the maximum xor value with all elements in them

2016-06-06 20:57:38 4932 2

原创 LeetCode 66. Plus One

Plus OneDes Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list.分析 本题的意思

2016-06-03 16:01:33 603

原创 LeetCode 27. Remove Elemen

Remove ElemenDes Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place with co

2016-06-03 15:51:19 442

原创 LeetCode 198. House Robber

Remove ElementDes Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place with c

2016-06-03 15:19:11 271

原创 LeetCode 345. Reverse Vowels of a String

Reverse Vowels of a StringDes Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = “hello”, return “holle”. Example 2: Given s = “le

2016-06-03 14:50:16 526

原创 单词统计

单词统计Des 给一个比较长的字符串,统计一共有多少个单词,并输出最短和最长的单词Code#include <iostream>#include <vector>#include <map>#include <sstream>using namespace std;int main() { string str1="Airmail, or standard mail?";

2016-06-02 22:00:13 690

原创 LeetCode 121. Best Time to Buy and Sell Stock

Best Time to Buy and Sell StockDes Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy o

2016-05-31 22:05:57 392

原创 LeetCode 70. Climbing Stairs

Climbing StairsDes You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?分析 一开始看到这

2016-05-31 21:57:22 446

原创 LeetCode 326. Power of Three

Power of ThreeDes Given an integer, write a function to determine if it is a power of three.分析 这个题开始没理解,以为是求一个数是否是某个数的三次方,导致不过。后来看了网上的才知道是求是否是3的x次方。那么如果一个数是的的肯定就能被3一直整除至到不能再被整除时商是否为1,这就是解题的关键。Cod

2016-05-31 21:44:30 297

原创 PCA

PCA讲解找了几个讲的很好的PCA,特别透彻,先记下地址,随后自己再下。 csdn-kaka_36的专栏-PCA的数学原理 cnblogs-华夏35度-主成分分析PCA

2016-05-12 17:17:51 1005

原创 Digits 安装

Digits 安装shell其实下载地址在这里 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/CUDA_REPO_PKG=cuda-repo-ubuntu1404_7.5-18_amd64.deb ##这里的版本要和自己装的cuda版本匹配,自己手动改下wget http://developer

2016-05-09 11:10:30 1837

原创 第二章 线性表

第二章 线性表大纲线性表的定义和基本操作线性表的实现 2.1顺序存储结构 2.2链式存储结构 2.3线性表的应用2.1 线性表的基本概念与实现1. 线性表的逻辑特性   只有一个表头元素,只有一个表尾元素,表头元素没有前驱,表尾元素没有后继元素,其它的只有一个前驱和后继元素。 2. 线性表的存储结构  顺寻存储:顺序表  链式存储:链表  2.1顺序表

2016-05-05 16:18:45 504

原创 第一章 绪论

第一章 绪论1.1代码要规范1.1.1 包含 n 个元素的数组 R ,向左移动 p 请用代码描述 思路:将 R 中前 p 个元素逆序,剩下的元素也逆序,最后数组整体逆序code//数组逆序,实际操作void reverse(int R[],int l,int r){ for(int i=l,j=r;i<j;i++,j--){ int tmp = R[i];

2016-05-03 21:31:54 563

原创 数据结构复习

本次的数据结构复习主要是参考天勤-2014版数据结构高分笔记(C实现)以及数据结构(C++实现)1、先复习天勤实现的,这个我认为入门是最合适的。2、最后会再用C++实现以下

2016-05-03 13:22:25 521

原创 NYOJ - 599 奋斗的小蜗牛

原题链接NYOJ - 599 奋斗的小蜗牛描述 传说中能站在金字塔顶的只有两种动物,一种是鹰,一种是蜗牛。一只小蜗牛听了这个传说后,大受鼓舞,立志要爬上金字塔。为了实现自己的梦想,蜗牛找到了老鹰,老鹰告诉它金字塔高H米,小蜗牛知道一个白天自己能向上爬10米,但由于晚上要休息,自己会下滑5米。它想知道自己在第几天能站在金字塔顶,它想让你帮他写个程序帮助它。分析 注意再最后10米的时候蜗牛就一

2016-05-02 17:30:34 1254

原创 NYOJ - 733 万圣节派对

NYOJ - 733 万圣节派对描述 万圣节有一个Party,XadillaX显然也要去凑热闹了。因为去凑热闹的人数非常庞大,几十W的数量级吧,自然要进场就需要有门票了。很幸运的,XadillaX竟然拿到了一张真·门票!这真·门票的排列规则有些奇怪: 门票号是由0~6组成的六位数(0~6这几个数字可重用) 每一个门票号的每一位不能有三个连续相同的数字(如123335是不行的)

2016-05-02 17:22:53 566

原创 NYOJ - 24 素数距离问题

NYOJ - 24:素数距离问题描述 现在给出你一些数,要求你写出一个程序,输出这些整数相邻最近的素数,并输出其相距长度。如果左右有等距离长度素数,则输出左侧的值及相应距离。 如果输入的整数本身就是素数,则输出该素数本身,距离输出0Code#include<iostream>using namespace std;#素数打表,这是这个题的关键所在const int N = 1000

2016-05-02 13:17:55 500

原创 google protobuf编译安装(ImportError: No module named google.protobuf.internal)

最近在编译caffe python接口,python下import caffe报这个错误ImportError: No module named google.protobuf.internal原因是之前一步 pip install -r requirement.txt不成功,原因是数据源拉不到东西,只得自己亲手安装了。首先现在protobuf    下载protobuf-2.3.

2016-01-26 10:43:57 14473 1

原创 使用现有的基于caffe训练好的imagenet model进行图片分类

经常使用caffe进行图片分类,用了经常忘了当初怎么配置的,现在记录下。caffe 主页  http://caffe.berkeleyvision.orggithub 项目主页 https://github.com/BVLC/caffe/caffe官网主页using the C++ API进行图片分类教程http://caffe.berkeleyvision.org/gathere

2016-01-25 17:03:18 4688

原创 2015创新工场涂鸦移动测试题-软件工程师

.将链表中的所有元素为奇数的节点移到元素为偶数节点的前面,并保证奇数之间顺序不变,偶数之间顺序不变。 示例:交换前链表的顺序           交换后链表的顺序4→5→3→1→2  ==>  5→3→1→4→2 1 ==> 1                (链表仅含一个元素)2→1 ==>1→2        ==>       (链表为空) C/C++:

2016-01-06 20:37:35 425

原创 创新工场涂鸦移动测试题-软件工程师

1. 找出n个字符串中出现次数最多的字符串。 C/C++:char* find(char **data,int n);Java:String find(Stringdata[]); 说明:1. data是字符串数组,n是数组中字符串的个数,返回值为出现次数最多的字符串。2. 若结果有多个,返回任意一个即可3. 不得使用任何库函数/API,如需使用类似功能,

2016-01-06 20:35:40 1415

原创 NYOJ 2 括号配对问题

#include #include #include #include using namespace std;int main(){ int n = 0; cin >> n; while (n--) { char str[10005]; cin >> str; int len = strlen(str); char vec[10005]; int fl

2015-11-11 21:11:57 400

原创 使用OPENCV自带的sift提取特征

最近在使用opencv中自带的sift特征提取器,学艺不精导致很简单的东西搞了好几天没出来,今天解决了特意纪录下;// opencv_empty_proj.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include#include#include#include using namespace s

2015-11-05 11:33:59 7763 2

原创 宏定义中的一些特殊符号的用法

最近在学习C++看了一些语法后xia

2014-11-24 21:55:57 2356

原创 Matlab 往文件中以需加的方式写入数据

由于我想以续加的方式往里边写数据,因此我在内层循环中不断的

2014-11-03 18:58:20 3114

原创 因子分解相关 整理

输入90,打印出90=2*3*3*5。#include #include #include main(){ int n,i,j,k; scanf("%d",&n); printf("%d=",n); i=0; while(n!=i) { for(i=2;i<n;i++) { if(n%i==0) { printf("%d*",i);

2014-03-30 16:39:27 800

原创 指针 段溢出 段错误的自我学习

先说最近在OJ时,遇到的一个指针的的问题:int a;int *t;  *t=a;可能出现错误,及其原因。       t是一个指向整型的指针,因此*t是一个整数。当a赋值给*t有什么不妥?表面看起来没什么问题,更或者运行时,时而正确时而错误。原因是因为t是一个变量(指针也是个变量),所以赋值之前是不能确定的,也就是说在赋值前不知道t指向了哪里。或许指向了一块可以赋值的地方,那运行

2014-03-19 12:45:46 3015

原创 HDU 1.3.4悼念512汶川大地震遇难同胞——老人是真饿了

这个题,猛一看我还真的的没想出来。借鉴的别人的,不过仍然提交不了,我觉的原因是我用的二维数组,别人是用的结构体。我分别贴下代码,欢迎指导:我自己的代码#include #include #include int cmp(const void *pa,const void *pb){ return *(int *)pa<*(int *)pb;}int main(){ in

2014-03-18 15:55:45 851

原创 HDU 1.3.3第二小整数

很水的题,但是不知道为什么提交不过去#include #include #include int cmp(const void *pa,const void *pb){ return *(int *)pa>*(int *)pb;}int main(){ int n,m,i,k; int arr[15]={0}; scanf("%d",&n); while(n) {

2014-03-17 21:38:36 901

原创 HDU 1.3.2百步穿杨

看了题目就给写出来了,觉的这个出的挺开心的啊,但是提交不了,因此我把这个框架搭出来了,在这个基础上继续改进,代码如下:Input首先输入一个t,表示有t组数据,跟着t行:                                                                       //这里需要好好理解哇,这需要嵌套多少层数据,这个格式没理解

2014-03-17 19:53:33 900

原创 HDU 1.3.1今年暑假不AC

开始看该题,没思路,后来想了想有了但是有一点细节不会实现。上代码把,如下:#include #include #include using namespace std;typedef struct { int s,e; }Ti;int Cmp(Ti a,Ti b){ return a.e<b.e;//这里排序注意是对哪个变量排,若对s排组后就需要试探所有可能比较麻烦,

2014-03-17 16:34:51 667

原创 HDU 1.2.7 Identity Card

这个题其实很简单,主要是处理数据,给大家分享一下处理数据的一中方法:分别用C和C++两种方法实现,很是不错哈。#include #include //#include //#include using namespace std;int main(){ int n; int yy,mm,dd,id,hh; string home; //char * home; sca

2014-03-17 10:54:43 7497

原创 HDU 1.2.8 View Code

#include #include int main(){ int n,i; char str[55]; scanf("%d\n",&n); while(n){ i=0; scanf("%s",str); while(str[i]){ while(str[i]>='A'&&str[i]<='Z') { str[i]=str[i]+32; i+

2014-03-17 10:27:21 729

原创 (1.2.2) Box of Bricks

#include #include int main(){int n,hi,j,i,sum,m=0,count;int arr[55]={0};while(scanf("%d",&n)&&n!=0){j=n;m++;count=sum=i=hi=0;while(j){scanf("%d",&arr[i]);sum=sum+arr[i];

2014-03-15 10:51:53 788 1

离散数学Pdf

离散数学电子书免费

2015-03-12

吴恩达课程讲义_中文版

吴恩达 机器学习 中文讲义 这个的讲的比csdn中有一份要思路清晰些

2014-03-09

教务排课系统

教务排课系统 拿出来与大家分享 希望对大家有帮助

2012-06-27

试题管理系统 (JAVA)

试题管理系统 JAVA 新手练手还是不错的

2012-06-24

户籍管理系统 JAVA

java做的户籍管理系统 对做课程设计的同学很有用啊

2012-06-24

机房管理系统课程设计

机房管理系统 课程设计 希望对大家有帮助

2012-06-22

公司人事管理系统

人事管理系统 拿出来与大家分享 希望对初学者有帮助

2012-06-22

人事管理系统 C#做的

人事管理系统希望对大家有帮助 C#做的

2012-06-22

客户积分管理系统

自己做的课程设计拿出来与大家共享希望对你有帮助

2012-06-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除