- 博客(18)
- 收藏
- 关注
转载 并查集详解(转)
并查集是我暑假从高手那里学到的一招,觉得真是太精妙的设计了。以前我无法解决的一类问题竟然可以用如此简单高效的方法搞定。不分享出来真是对不起party了。(party:我靠,关我嘛事啊?我跟你很熟么?)来看一个实例,杭电1232畅通工程首先在地图上给你若干个城镇,这些城镇都可以看作点,然后告诉你哪些对城镇之间是有道路直接相连的。最后要解决的是整幅图的连通性问题。比如随意给你两个点
2016-12-22 16:44:00
228
转载 google Inception v1 - v4 papers 发展历程
google Inception v1 - v4 papers 发展历程转自:http://blog.youkuaiyun.com/u010025211/article/details/51206237先上Paper列表:[v1] Going Deeper with Convolutions, 6.67% test error, http://arxiv.org/abs/1409.
2016-10-25 10:28:22
783
原创 [LeetCode] Binary Tree Inorder Traversal
question:Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree [1,null,2,3],解题思路:递归vector res; void inorder(TreeNode *root) {
2016-10-25 10:17:33
388
原创 [LeetCode] Missing Number
question:Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.For example,Given nums = [0, 1, 3] return 2.解题思路: the mi
2016-10-25 10:13:46
349
原创 [LeetCode] Single Number III
question:Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For example
2016-10-25 10:10:14
306
原创 [LeetCode] Maximum Depth of Binary Tree
question: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.解题思路: 递归求解,返回较大深度int maxD
2016-10-25 10:06:14
360
转载 TensorFlow深度学习框架
TensorFlow深度学习框架1. 准备训练数据2. 接受命令行参数3. 定义神经网络模型4. 使用不同的优化算法5. Online learning与Continuous learning6. 使用TensorBoard优化参数7. 分布式TensorFlow应用8. Cloud Machine Learning
2016-09-22 10:37:19
11417
1
原创 [LeetCode] Two Sum II - Input array is sorted
Two Sum II - Input array is sorted
2016-09-14 15:57:08
319
原创 [LeetCode] String to Integer (atoi)
Implement atoi to convert a string to an integer.
2016-09-04 10:15:51
343
原创 C++ 变量和基本类型(一)
1基本内置类型:C++ 定义了一套包括算术类型和空类型在内的基本数据类型。算术类型包括字符,整型数,布尔值和浮点数。空类型不对应任何具体地值,仅用于特殊的场合,例如函数不返回任何值时使用空类型作为返回类型。算术类型分为两大类:整型(包括字符和布尔类型在内)和浮点型。带符号类型和无符号类型:除去布尔类型和扩展的字符类型外,其他整型可以划分为带符号的(signed)和无符号的(unsign
2016-08-26 09:51:51
527
原创 C++ 输入输出
C++ 输入输出使用 iostream 库。iostream 库包括两个基础的类型 istream 和 ostream,分别表示输入流和输出流。一个流就是一个字符序列,是从 IO 设备中读出或写入 IO 设备的。术语“流”想表达的是,随着时间的推移,字符是顺序生成或消耗的。cin:istream 类型的对象,称为标准输入。cout:ostream 类型的对象,标准输出。cerr 和 c
2016-08-25 16:58:11
345
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人