- 博客(4)
- 收藏
- 关注
原创 [leetcode]Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3, t
2015-08-13 17:15:46 266
原创 [leetcode]Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.解题思路: 递归!solution:/** * Definition for a b
2015-08-13 16:46:04 222
原创 [leetcode]Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra
2015-08-13 15:29:15 344
原创 在Ubuntu14.04下编译caffe + cuda7.0
这次是第三次在ubuntu14.04下编译caffe,前两次因为没有GPU而省去了安装CUDA的步骤,但这次想用GPU来运行caffe因此本次的安装中需要包含CUDA的配置。网上很多caffe的安装教程所提及的CUDA都是6.5版本的,而现在NVIDIA官网上只有CUDA7.0可以下载,不过还是有些教程是安装CUDA7.0的。而这次的编译过程基本上是按照http://www.aichengxu.co
2015-07-26 21:26:16 333
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人