http://www.lintcode.com/zh-cn/problem/binary-tree-level-order-traversal/# 错误点:queue是抽象的,实例化时,实例成LinkedList q.isEmpyt() 不是q.empty() 入队 q.offer(E) 出队 q. ...
分类:
其他好文 时间:
2017-05-09 00:46:53
阅读次数:
127
【BZOJ3831】[Poi2014]Little Bird Description In the Byteotian Line Forest there are trees in a row. On top of the first one, there is a little bird who ...
分类:
其他好文 时间:
2017-05-08 16:16:31
阅读次数:
151
1、memcache基本简介 1、memcache基本简介 memcached是高性能的分布式内存缓存服务器。一般的使用目的是,通过缓存数据库查询结果,减少数据库访问次数,以提高动态Web应用的速度、提高可扩展性。 Memcache的运行图: Memcache的特征 memcached作为高速运行的 ...
分类:
系统相关 时间:
2017-05-08 14:48:12
阅读次数:
236
第一次写的有什么不对的地方还希望各位前辈能多多指点。 下载open-webkit-sharp 解压文件 新建一个Windows窗体应用程序 Demo 从open-webkit-sharp-master文件夹中把Core文件夹和References文件夹中的文件复制到Demo的Debug文件夹下 从B ...
分类:
Web程序 时间:
2017-05-08 11:17:23
阅读次数:
375
题目: Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between t ...
分类:
其他好文 时间:
2017-05-07 22:06:13
阅读次数:
217
235. Lowest Common Ancestor of a Binary Search Tree 题目链接:https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/#/description 题目 ...
分类:
其他好文 时间:
2017-05-07 19:47:40
阅读次数:
207
cv2.threshold介绍,如下图所示,每个数字代表起本身的灰度值大小 cv2.threshod接收5种类参数形式,分别是cv2.THRESH_BINARY,cv2.THRESH_BINARY_INV,cv2.THRESH_TRUNC ,cv2.THRESH_TOZERO,cv2.THRESH_ ...
分类:
编程语言 时间:
2017-05-07 16:47:39
阅读次数:
276
Convert Sorted Array to Binary Search Tree Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 解题思路: 题意为 ...
分类:
其他好文 时间:
2017-05-07 14:08:01
阅读次数:
108
模板: 给定一个排序的整数数组(升序)和一个要查找的整数target,用O(logn)的时间查找到target第一次出现的下标(从0开始),如果target不存在于数组中,返回-1。 若将条件改为查找target最后一次出现的下标(从0开始),那么程序将发生改变,循环中如果 array[mid] = ...
分类:
编程语言 时间:
2017-05-07 13:58:33
阅读次数:
174
Given two non-empty binary trees s and t, check whether tree t hasexactly the same structure and node values with a subtree of s.A subtree of s is a t ...
分类:
其他好文 时间:
2017-05-07 12:59:22
阅读次数:
147