- 博客(2275)
- 资源 (69)
- 问答 (17)
- 收藏
- 关注
原创 [算法]二叉树创建
【链式存储结构】struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {}};【层次创建二叉树】// 创建二叉树TreeNode* CreateTreeByLevel(vector nu
2014-12-30 11:32:35 2627
[算法]二叉树创建
【链式存储结构】struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {}};【层次创建二叉树】// 创建二叉树TreeNode* CreateTreeByLevel(vector&...
2014-12-30 11:32:00 361
[算法]二叉树创建
【链式存储结构】struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {}};【层次创建二叉树】// 创建二叉树TreeNode* CreateTreeByLevel(vector&...
2014-12-30 11:32:00 128
原创 [LeetCode]111.Minimum Depth of Binary Tree
【题目】Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.【分析】类似于:LeetCode之Maxim
2014-12-30 11:14:57 1573
[LeetCode]111.Minimum Depth of Binary Tree
【题目】Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.【分析】类似于:LeetCode之Maximum...
2014-12-30 11:14:00 142
[LeetCode]111.Minimum Depth of Binary Tree
【题目】Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.【分析】类似于:LeetCode之Maximum...
2014-12-30 11:14:00 115
转载 [网络]HTTP协议详解
引言 HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of
2014-12-29 22:41:23 1099
[网络]HTTP协议详解
【简介】 HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of HTTP)的建议已经提出。...
2014-12-29 22:41:00 115
[网络]HTTP协议详解
【简介】 HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of HTTP)的建议已经提出。...
2014-12-29 22:41:00 176
转载 [IT]HTML网页源码的字符编码(charset)解释
当你通过浏览器,打开某个网站,即某个url地址的时候,你所能正常看到网页的内容,各种文字,都可以正常显示,且没有显示乱码。此过程,涉及到,浏览器帮你正确解析HTML源码,其中涉及到HTML网页源码的字符编码处理方面的问题。和字符编码处理相关的大概逻辑是:1.浏览器访问对应的url地址,并获取对应的HTML(或者,以及,其他的css,javascript等)网页源码
2014-12-29 19:57:41 2609
[IT]HTML网页源码的字符编码(charset)解释
当你通过浏览器,打开某个网站,即某个url地址的时候,你所能正常看到网页的内容,各种文字,都可以正常显示,且没有显示乱码。此过程,涉及到,浏览器帮你正确解析HTML源码,其中涉及到HTML网页源码的字符编码处理方面的问题。和字符编码处理相关的大概逻辑是:1.浏览器访问对应的url地址,并获取对应的HTML(或者,以及,其他的css,javascript等)网页源...
2014-12-29 19:57:00 341
[IT]HTML网页源码的字符编码(charset)解释
当你通过浏览器,打开某个网站,即某个url地址的时候,你所能正常看到网页的内容,各种文字,都可以正常显示,且没有显示乱码。此过程,涉及到,浏览器帮你正确解析HTML源码,其中涉及到HTML网页源码的字符编码处理方面的问题。和字符编码处理相关的大概逻辑是:1.浏览器访问对应的url地址,并获取对应的HTML(或者,以及,其他的css,javascript等)网页源...
2014-12-29 19:57:00 394
转载 [IT]当你在浏览器地址栏输入一个URL后回车,将会发生的事情?
作为一个软件开发者,你一定会对网络应用如何工作有一个完整的层次化的认知,同样这里也包括这些应用所用到的技术:像浏览器,HTTP,HTML,网络服务器,需求处理等等。本文将更深入的研究当你输入一个网址的时候,后台到底发生了一件件什么样的事。1. 首先,你得在浏览器里输入要网址:2. 浏览器查找域名的IP地址导航的第一步是通过访问的域名找出其IP地址。
2014-12-29 18:15:42 2008
[IT]当你在浏览器地址栏输入一个URL后回车,将会发生的事情?
原文:What really happens when you navigate to a URL作为一个软件开发者,你一定会对网络应用如何工作有一个完整的层次化的认知,同样这里也包括这些应用所用到的技术:像浏览器,HTTP,HTML,网络服务器,需求处理等等。本文将更深入的研究当你输入一个网址的时候,后台到底发生了一件件什么样的事。1. 首先,你得在浏览器里输入要网址:...
2014-12-29 18:15:00 178
[IT]当你在浏览器地址栏输入一个URL后回车,将会发生的事情?
原文:What really happens when you navigate to a URL作为一个软件开发者,你一定会对网络应用如何工作有一个完整的层次化的认知,同样这里也包括这些应用所用到的技术:像浏览器,HTTP,HTML,网络服务器,需求处理等等。本文将更深入的研究当你输入一个网址的时候,后台到底发生了一件件什么样的事。1. 首先,你得在浏览器里输入要网址:...
2014-12-29 18:15:00 226
转载 [Python]Eclipse安装配置PyDev插件
【安装PyDev】首先需要去Eclipse官网下载:http://www.eclipse.org/,Eclipse需要JDK支持,如果Eclipse无法正常运行,请到Java官网下载JDK安装:http://www.oracle.com/technetwork/java/javase/downloads。打开Eclipse,找到Help菜单栏,进入Install New S
2014-12-29 17:41:45 1236
[Python]Eclipse安装配置PyDev插件
【安装PyDev】首先需要去Eclipse官网下载:http://www.eclipse.org/,Eclipse需要JDK支持,如果Eclipse无法正常运行,请到Java官网下载JDK安装:http://www.oracle.com/technetwork/java/javase/downloads。打开Eclipse,找到Help菜单栏,进入Install New...
2014-12-29 17:41:00 112
[Python]Eclipse安装配置PyDev插件
【安装PyDev】首先需要去Eclipse官网下载:http://www.eclipse.org/,Eclipse需要JDK支持,如果Eclipse无法正常运行,请到Java官网下载JDK安装:http://www.oracle.com/technetwork/java/javase/downloads。打开Eclipse,找到Help菜单栏,进入Install New...
2014-12-29 17:41:00 120
原创 [LeetCode]109.Convert Sorted List to Binary Search Tree
【题目】Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.【分析】无【代码】在下面超时的代码上进行改进:把链表先转换为vector再进行操作。[LeetCode]108.Convert Sorted Ar
2014-12-29 10:38:06 1607
[LeetCode]109.Convert Sorted List to Binary Search Tree
【题目】Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.【分析】无【代码】在下面超时的代码上进行改进:把链表先转换为vector再进行操作。[LeetCode]108.Convert Sorted Arra...
2014-12-29 10:38:00 129
[LeetCode]109.Convert Sorted List to Binary Search Tree
【题目】Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.【分析】无【代码】在下面超时的代码上进行改进:把链表先转换为vector再进行操作。[LeetCode]108.Convert Sorted Arra...
2014-12-29 10:38:00 101
转载 [Python]学习笔记之文件和异常
python中对文件、文件夹(文件操作函数)的操作需要涉及到os模块和shutil模块。得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd()返回指定目录下的所有文件和目录名:os.listdir()函数用来删除一个文件:os.remove()删除多个目录:os.removedirs(r“c:\python”)检验给出的路径是否是一个文件:os.pat
2014-12-28 23:25:47 1369
[Python]学习笔记之文件和异常
python中对文件、文件夹(文件操作函数)的操作需要涉及到os模块和shutil模块。得到当前工作目录,即当前Python脚本工作的目录路径:os.getcwd()返回指定目录下的所有文件和目录名:os.listdir()函数用来删除一个文件:os.remove()删除多个目录:os.removedirs(r“c:\python”)检验给出的路径是否是一个文件:os.path...
2014-12-28 23:25:00 175
[Python]学习笔记之文件和异常
python中对文件、文件夹(文件操作函数)的操作需要涉及到os模块和shutil模块。得到当前工作目录,即当前Python脚本工作的目录路径:os.getcwd()返回指定目录下的所有文件和目录名:os.listdir()函数用来删除一个文件:os.remove()删除多个目录:os.removedirs(r“c:\python”)检验给出的路径是否是一个文件:os.path...
2014-12-28 23:25:00 127
原创 [LeetCode]108.Convert Sorted Array to Binary Search Tree
【题目】Given an array where elements are sorted in ascending order, convert it to a height balanced BST.【分析】二分法,以中间元素i为根节点[start,i-1]递归构建左子树,[i+1,end]递归构建右子树【代码】/*****************************
2014-12-28 11:22:38 1899
[LeetCode]108.Convert Sorted Array to Binary Search Tree
【题目】Given an array where elements are sorted in ascending order, convert it to a height balanced BST.【分析】二分法,以中间元素i为根节点[start,i-1]递归构建左子树,[i+1,end]递归构建右子树【代码】/*****************************...
2014-12-28 11:22:00 194
[LeetCode]108.Convert Sorted Array to Binary Search Tree
【题目】Given an array where elements are sorted in ascending order, convert it to a height balanced BST.【分析】二分法,以中间元素i为根节点[start,i-1]递归构建左子树,[i+1,end]递归构建右子树【代码】/*****************************...
2014-12-28 11:22:00 69
原创 [Python]学习笔记之列表
# coding=utf-8#一 初始列表fruits = ["apple","banama","peach"]print fruitsprint fruits[0]#列表长度print len(fruits)#尾部追加一个数据项fruits.append("watermelon")print fruits#尾部删除一个数据项fruits.pop()print fruit
2014-12-27 21:51:58 1294
[Python]学习笔记之列表
# coding=utf-8#一 初始列表fruits = ["apple","banama","peach"]print fruitsprint fruits[0]#列表长度print len(fruits)#尾部追加一个数据项fruits.append("watermelon")print fruits#尾部删除一个数据项fruits.pop()print fruit...
2014-12-27 21:51:00 163
[Python]学习笔记之列表
# coding=utf-8#一 初始列表fruits = ["apple","banama","peach"]print fruitsprint fruits[0]#列表长度print len(fruits)#尾部追加一个数据项fruits.append("watermelon")print fruits#尾部删除一个数据项fruits.pop()print fruit...
2014-12-27 21:51:00 70
原创 [LeetCode]98.Validate Binary Search Tree
【题目】Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with keys less than the nod
2014-12-27 17:28:33 1706
[LeetCode]98.Validate Binary Search Tree
【题目】Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with keysless thanthe node's...
2014-12-27 17:28:00 129
[LeetCode]98.Validate Binary Search Tree
【题目】Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with keysless thanthe node's...
2014-12-27 17:28:00 103
原创 [LeetCode]95.Unique Binary Search Trees II
【题目】Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all 5 unique BST's shown below. 1
2014-12-27 15:49:02 1644
[LeetCode]95.Unique Binary Search Trees II
【题目】Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 unique BST's shown below. 1 ...
2014-12-27 15:49:00 125
[LeetCode]95.Unique Binary Search Trees II
【题目】Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 unique BST's shown below. 1 ...
2014-12-27 15:49:00 73
原创 [LeetCode]96.Unique Binary Search Trees
【题目】Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1 3 3 2
2014-12-26 21:37:53 2092
[LeetCode]96.Unique Binary Search Trees
【题目】Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1 3 3 2 1 ...
2014-12-26 21:37:00 154
[LeetCode]96.Unique Binary Search Trees
【题目】Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1 3 3 2 1 ...
2014-12-26 21:37:00 70
原创 [LeetCode]117.Populating Next Right Pointers in Each Node II
【题目】Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution still work?Note:You may only use
2014-12-24 19:05:53 1548
大型网站技术核心原理与案例分析
2015-12-25
Android应用开发揭秘
2015-12-17
Android开发秘籍
2015-12-17
Android开发精要
2015-12-17
Android技术内幕.系统卷
2015-12-17
Android高级编程
2015-12-17
JavaEE企业应用实战-Struts2+Spring3+Hibernate整合开发
2015-12-17
Mahout算法解析与案例实战
2015-12-16
LINUX内核设计与实现
2015-12-14
重构-改善即有代码的设计
2015-12-14
算法艺术和信息学竞赛
2015-12-14
apache-mahout-distribution-0.11.1-src
2015-11-30
Better bitmap performance with Roaring bitmaps
2023-03-06
美团外卖离线数仓建设实践
2023-02-19
Redis 入门指南
2017-06-02
Apache Sqoop Cookbook
2016-11-14
Apache Spark源码剖析
2016-11-12
Elasticsearch.The.Definitive.Guide
2016-10-21
Shell脚本学习指南
2016-05-28
精通Spring
2016-02-07
Java Persistence with MyBatis 3
2016-02-06
Spring-Jar-4.2.4
2016-01-28
log4j所需jar包
2016-01-20
Hadoop实战中文版
2015-12-25
大规模分布式系统架构与设计实战
2015-12-25
Hive Range Between 结果错误问题
2023-02-28
Storm Trident 抛异常不重发
2018-11-23
hive SERDEPROPERTIES 实现正则过滤
2018-06-05
Flink 关于窗口Window的问题
2018-01-17
Hive 运行SQL 重定向文件 输出WARN日志
2017-06-13
Hadoop Distcp报错 队列问题
2017-01-17
Hive Join 失败
2016-11-28
Hive 查询问题
2016-09-07
Hive LOAD DATA 错误
2016-07-23
[ElasticSearch] 中文字符串精确搜索 term 搜不到结果
2016-07-05
mysql group by 统计问题
2016-06-17
大型分布式网站架构的演进
2016-05-16
ubuntu IntelliJ Idea设置快捷方式问题
2016-03-08
罗技键盘 k380 连接上 没有任何的反应?
2016-03-06
Maven archetype:generate报错
2016-01-25
Log4j问题
2016-01-16
Java Stringbuilder调用append()方法报错
2015-12-20
nosql开放性问题
2015-12-18
TA创建的收藏夹 TA关注的收藏夹
TA关注的人