自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 Symmetric Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 ...

2015-09-20 16:53:06

阅读数 569

评论数 0

原创 Remove Element

Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn&...

2015-09-18 13:55:30

阅读数 365

评论数 0

原创 Remove Duplicates from Sorted Array

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra spac...

2015-09-18 11:46:32

阅读数 379

评论数 0

原创 Palindrome Linked List

Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? solution: two pointers, o...

2015-09-08 18:39:40

阅读数 339

评论数 0

原创 Valid Anagram

Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", ...

2015-09-08 15:16:58

阅读数 424

评论数 0

原创 Binary Search Tree Iterator

Binary Search Tree Iterator

2015-09-06 15:57:47

阅读数 319

评论数 0

原创 Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2-&...

2015-09-06 12:15:29

阅读数 318

评论数 0

原创 Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. solution: 这道题是merge 2 sorted linked lists的扩展,从2-》...

2015-09-06 11:01:26

阅读数 297

评论数 0

原创 Generate Parentheses

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set i...

2015-09-01 22:47:30

阅读数 320

评论数 0

原创 Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. solu...

2015-08-31 17:39:55

阅读数 343

评论数 0

原创 Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determin...

2015-08-31 15:15:03

阅读数 282

评论数 0

原创 Remove Nth Node From End of List

Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, ...

2015-08-31 13:09:35

阅读数 271

评论数 0

原创 4Sum

Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array wh...

2015-08-31 11:38:58

阅读数 301

评论数 0

原创 Letter Combinations of a Phone Number

Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the tel...

2015-08-28 11:14:44

阅读数 454

评论数 0

原创 3Sum Closest

Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers...

2015-08-28 10:28:54

阅读数 294

评论数 0

原创 3Sums

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum ...

2015-08-27 17:14:36

阅读数 416

评论数 0

原创 Longest Common Prefix

Write a function to find the longest common prefix string amongst an array of strings. class Solution { public: string longestCommonPrefix(vecto...

2015-08-27 11:48:58

阅读数 275

评论数 0

原创 Roman to Integer

Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. #include class Solution { public:...

2015-08-26 17:55:56

阅读数 304

评论数 0

原创 Integer to Roman

Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 查表法: class Solution { public: ...

2015-08-26 15:40:58

阅读数 338

评论数 0

原创 Container With Most Water

Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ...

2015-08-26 14:29:19

阅读数 255

评论数 0

原创 Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space. class Solution { public: bool isPalindrome(int x) { int inver...

2015-08-24 18:25:21

阅读数 311

评论数 0

原创 String to Integer (atoi)

Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see be...

2015-08-24 17:53:56

阅读数 348

评论数 0

原创 Reverse Integer

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about ...

2015-08-24 16:05:43

阅读数 321

评论数 0

原创 ZigZag Conversion

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in ...

2015-08-24 14:09:30

阅读数 335

评论数 0

原创 Median of Two Sorted Arrays

There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity...

2015-07-28 22:21:46

阅读数 610

评论数 0

原创 Longest Palindromic Substring

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...

2015-07-28 22:17:37

阅读数 262

评论数 0

原创 Add Two Numbers

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...

2015-07-08 22:07:16

阅读数 427

评论数 0

原创 Two Sum

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 t...

2015-07-07 23:04:32

阅读数 462

评论数 0

原创 deep learning for face detection

深度学习如何做人脸检测

2015-06-03 16:10:54

阅读数 11655

评论数 66

原创 caffe tools command

1. compute the mean image. #!/usr/bin/env sh # Compute the mean image from the imagenet training leveldb # N.B. this is available in data/ilsvrc12 ...

2015-05-13 15:53:43

阅读数 1737

评论数 0

原创 leetcode: Happy Number

Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any p...

2015-05-11 15:07:45

阅读数 501

评论数 0

原创 leetcode 之 Reverse Linked List

Reverse a singly linked list. /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNod...

2015-05-11 11:21:30

阅读数 2078

评论数 0

原创 Beyond Frontal Faces: Improving Person Recognition Using Multiple Cues

最近阅读到Facebook AI实验室发的一篇文章,Beyond Frontal Faces: Improving Person Recognition Using Multiple Cues,主要用来做person recognition。 论文提到,传统的deepface适用于正脸(front...

2015-03-30 21:31:46

阅读数 1528

评论数 3

原创 cuDNN: efficient Primitives for Deep Learning 论文阅读笔记

这篇论文主要讨论如何针对CNN做一些GPU矩阵计算的优化。传统CNN计算主要开销是在convolutions, activation function, pooling. 首先,我们看convolution的操作过程: 参数表: O是输出input feature map,F是filter...

2015-03-12 16:41:09

阅读数 3633

评论数 1

原创 Caffe SGD shuffle mechanism

As we know, the SGD need to shuffle all data in an epoch(the number of data), and read data sequentially batch by batch. How Caffe implement the shu...

2015-02-28 14:08:04

阅读数 5109

评论数 1

原创 caffe python 批量抽取图像特征---续篇

caffe python 批量抽取图像特征---续篇

2015-02-02 23:08:23

阅读数 6731

评论数 0

转载 practice experience of deep learning from Ilya Sutskever

Practical Advice. Ok. So you’re sold. You’re convinced that LDNNs are the present and the future and you want to train it. But rumor has it that i...

2015-01-26 13:53:50

阅读数 1024

评论数 0

原创 caffe c++ 抽取图片特征

caffe c++批量抽取特征的方法在[1],但是该方法使用中有几个疑问: 1. 如何转换levelDB 格式为libsvm格式。 2. ./build/tools/extract_features mini-batch 是代表什么意思,和imagenet_val.prototxt中的batch...

2015-01-19 22:47:00

阅读数 21805

评论数 21

原创 caffe python批量抽取图像特征

原始的caffe教程提供单张图片的抽取,这里我们谈下如何用python批量抽取特征。

2015-01-19 22:36:37

阅读数 27497

评论数 19

原创 caffe python visualization程序解析

本文主要对http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/filter_visualization.ipynb进行代码解析。 1. net.blobs.items() 存储了预测图片的网络中各层的feature...

2015-01-19 15:35:42

阅读数 9148

评论数 9

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