自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(37)
  • 资源 (1)
  • 收藏
  • 关注

原创 改进记录

1、python中的::-1是什么意思: https://zhidao.baidu.com/question/680546440445879012.html?oldq=12、神经网络CNN训练心得–调参经验: http://blog.csdn.net/odailidong/article/details/521313583、

2017-08-26 00:26:05 472

转载 tensorflow

1.How to use saver : http://blog.csdn.net/u011500062/article/details/517288302.可视化:tensorboard –logdir=./logs –port 70013.在anaconda中激活使用tensorflow:source activate tensorflow4.单独使用一个GPU:export CU

2017-08-23 21:53:42 332

原创 tensorflow问题集合

1、问题:为什么模型文件是三个(.data-00000-of-00001和.index和.meta)而没有.ckpt后缀的文件? 解答:引文新版本的saver会保存成三个后缀的形式,而旧版本的saver才是保存成.ckpt的形式,可以把saver = tf.train.Saver()改成saver = tf.train.Saver(write_version=tf.train.SaverDef.V

2017-08-09 16:12:01 3595 2

原创 tensorflow_Faster rcnn问题解决

1、问题:not founderror(see above for traceback):unsuccessful tensorslicereader constructor:failed to find any matching files for vggnet_fast_rcnn_iter_150000.ckpt 解决:Thanks for your help! Adding a ./ did

2017-07-17 17:41:38 2206

转载 anaconda安装tensorflow

1、教程:http://www.jianshu.com/p/7be2498785b1

2017-07-16 16:32:58 577

原创 Sicily期末算法模拟题

sicily模拟题

2017-06-23 11:43:18 345

原创 算法概论8.9解答

题目: 解答:

2017-06-07 20:22:50 282

原创 linux命令操作

1、查使用内存最多的K个进程: ps -aux | sort -k4nr | head -K 2、查使用CPU最多的K个进程:ps -aux | sort -k3nr | head -K3、scp命令的实际应用概述: 从本地服务器复制到远程服务器: scp -r local_folder remote_username@remote_ip:remote_folder4、...

2017-06-06 22:02:00 288

原创 Leetcode 35. Search Insert Position

题意:找到比前面的数大比后面的数小的位置插进去,返回插入的位置。 int searchInsert(vector<int>& nums, int target) { for (int i = 0; i < nums.size(); i++) { if (nums[i] >= target) { return i;

2017-06-05 10:45:38 224

原创 Leetcode 69. Sqrt(x)

这道题只是要求int型的x的int的开根号数,只要不断用二分就可以,不过要注意边界条件,比如最后当high-low==1的时候,用不用返回以及要怎么返回。代码如下:class Solution {public: int mySqrt(int x) { if(x <= 0) return 0; int low = 1; int high = x; int mi

2017-06-05 10:32:44 236

原创 14. Longest Common Prefix

题目就是找最长公共前缀,很简单,直接写代码:class Solution {public: string longestCommonPrefix(vector<string> &strs) { if(strs.empty()) return ""; else if(strs.size() == 1) retur

2017-05-30 14:12:16 190

原创 Leetcode 113. Path Sum II

题目描述: Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.For example: Given the below binary tree and sum = 22, 5 / \

2017-05-21 21:35:05 244

原创 leetcode 112. Path Sum

题目: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example: Given the below binary tree and su

2017-05-14 23:14:47 192

原创 Leetcode 520

Leetcode 520题目: Given a word, you need to judge whether the usage of capitals in it is right or not.We define the usage of capitals in a word to be right when one of the following cases holds:All lett

2017-05-14 20:39:59 244

原创 Caffe安装错误及其解决方法

caffe

2017-05-05 13:24:55 15086 1

原创 Leetcode 101. Symmetric Tree

题目描述如下: 解决思路:这道题是我在BFS分类中找的,所以就试图用广搜的想法来解决,关键思路就是 1、left对应right 2、left->left对应right->right 3、left->right对应right->left; 技巧就是设立两个队列,一个保存左边的元素,另一个保存右边的元素。代码如下:/** * Definition for a binary tree node

2017-04-24 11:27:48 335

原创 Leetcode 557. Reverse Words in a String III

题目:Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: “Let’s take LeetCode contest”

2017-04-10 19:48:03 1572

原创 LeetCode 537. Complex Number Multiplication(string转int,int转string)

题目:Given two strings representing two complex numbers.You need to return a string representing their multiplication. Note i2 = -1 according to the definition.Example 1: Input: “1+1i”, “1+1i” Output:

2017-03-30 19:45:21 443

原创 LeetCode 539. Minimum Time Difference

题目:Given a list of 24-hour clock time points in “Hour:Minutes” format, find the minimum minutes difference between any two time points in the list.Example 1: Input: [“23:59”,”00:00”] Output: 1 Note:

2017-03-30 13:45:15 313

原创 LeetCode 541. Reverse String II

这道题一开始看错了题目,以为只是把前2K个的k个字符反转就可以,后来wa了才发现是要把每一个2k个字符的前k个字符反转,改正了代码。class Solution {public: void inv(string &s, int t, int k){ int med = (k-t)/2 + t; for(int i = t; i <= med; i++)

2017-03-30 09:35:02 755

原创 LeetCode 53. Maximum Subarray

题目:Find the contiguous subarray within an array (containing at least one number) which has the largest sum. 例子:For example, given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1]

2017-03-28 23:36:57 248

转载 浅谈C++中指针和引用的区别

看博客:http://www.cnblogs.com/dolphin0520/archive/2011/04/03/2004869.html

2017-03-27 16:49:10 170

原创 LeetCode 241. Different Ways to Add Parentheses

Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *. Example 1 Input

2017-03-26 23:21:33 292

原创 LeetCode 4. Median of Two Sorted Arrays

这道题很经典啊,它归类在分治算法里面,感觉和求一堆数中的第k大差不多,只不过这里是有两个已经排好序的数组,所以比较麻烦一些。整体的思路如下: 1、要求出两个数列的中间数,可以转换成求第k小(大)的数; 2、要求第k小的数,可以分为将第一个数列的k/2个数和第二个数列的k/2个数进行对比,小的那一个数列的左边k/2个数就可以丢弃了,如此递归下去,递归的终止条件为:(1)如果有一个数列的长度为0,则

2017-03-26 22:41:31 234

原创 LeetCode 7.Reverse Integer/LeetCode 9.Palindrome Number

问题描述:Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Note:The input is assumed to be a 32-bit signed integer. Your function should return 0 when the rever

2017-03-20 13:49:17 461

转载 欢迎使用CSDN-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用[StackEdit][6]修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用

2017-03-20 13:44:31 337

原创 Leetcode240. Search a 2D Matrix II

题目: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascending from left to right. Integers in ea

2017-03-08 20:10:42 3074

原创 Leetcode215. Kth Largest Element in an Array

这是一道分治的题目,去面网易的机器学习岗位的时候问了我这个问题,我那时候第一反应就是桶排序。。 ## 桶排序 ## 先附上桶排序的代码如下,应该注意两个地方:1、排序的数有可能是负数;2、排序的数有可能是重复的,比如[99 99],要找出第一大的数,这种情况对于判断第几大的时候要采用大于等于而不是直接用等于来判断。class Solution {public: int find

2017-03-05 22:48:33 317

原创 LeetCode1. Two Sum

LeetCode 1.Two Sum

2017-02-26 20:56:01 272

转载 浅析人脸检测之Haar分类器方法:Haar特征、积分图、 AdaBoost 、级联

浅析人脸检测之Haar分类器方法一、Haar分类器的前世今生       人脸检测属于计算机视觉的范畴,早期人们的主要研究方向是人脸识别,即根据人脸来识别人物的身份,后来在复杂背景下的人脸检测需求越来越大,人脸检测也逐渐作为一个单独的研究方向发展起来。       目前的人脸检测方法主要有两大类:基于知识和基于统计。Ø  基于知识的方法:主要利用先验知识将人脸看作器

2015-06-05 09:58:00 683 1

原创 二分查找(实现)

long binsearch(long all[],long n,int max_friends){    int low = 0,high = n-1,mid;    if(all[low] == max_friends)        return low;    if(all[high] == max_friends)        return high;   

2013-12-05 18:16:37 536

原创 快排 (自己实现)

void quick_sort(int a[],int x,int y){int xx = x,yy = y;int k = a[x];if(x >= y) return;while(xx != yy){while(xx = k) yy--;a[xx] = a[yy];while(xx a[yy] = a[xx];}a[xx] = k;quick

2013-12-03 23:50:21 626

转载 [转]编程面试的10大算法概念汇总(译)

http://blog.jobbole.com/52144/

2013-11-29 21:57:31 603

转载 计算机 算法 经典书籍

原文地址:http://luoypeng.blog.163.com/blog/static/47275404201182293012142/学计算机的人是幸福的,因为在这个领域中有如此多的通俗易懂(相对来说)的经典好书,你需要做的只是坚持把它们一本一本读下去而已。在这里列出一些我看过或者准备看的算法书籍,以供参考。     1. CLRS 算法导论 

2013-07-24 21:45:26 1185

原创 1119. Factstone Benchmark

此题让我想起了高中的数学。对于n次方或者阶乘的题目有一个取对的小技巧。还有一个斯特林公式:log10(n!) = log10(sqrt(2 * pi * n)) + n * log10(n / e)这个公式是从http://blog.csdn.net/dinosoft/article/details/5739689看来的。但是但是!!就算取了对数,这道题

2013-07-19 18:22:31 545

原创 Sicily 1190. Reduced ID Numbers

题目:http://soj.me/1190

2013-07-17 22:51:31 797

原创 Sicily1155

ConstraintsTime Limit: 1 secs, Memory Limit: 32 MB DescriptionI am a traveler. I want to post a letter to Merlin. But because there are so many roads I can walk through, and maybe I can’t go t

2013-07-16 23:53:40 732

sicily1006代码

本cpp是sicily的1006的解题代码 这份代码以最简单的方式实现了它的功能要求 值得学习一番

2014-09-29

空空如也

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

TA关注的人

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