Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2016-10-23 11:51:21
阅读次数:
149
1. ApplicationContextAware初始化 通过它Spring容器会自动把上下文环境对象调用ApplicationContextAware接口中的setApplicationContext方法。 我们在ApplicationContextAware的实现类中,就可以通过这个上下文环境 ...
分类:
移动开发 时间:
2016-10-22 20:21:26
阅读次数:
284
webpack它是一个模块管理工具 上篇提到由于模块的提出 出现commonjs 模块规范 由于commonjs模块的加载时同步的 不能在天生异步的浏览器中运行 所以 出现了requirejs和seajs requirejs遵循的AMD规范 而seajs遵循是CMD规范。 但我们用commonjs构 ...
分类:
Web程序 时间:
2016-10-22 18:12:47
阅读次数:
455
oracle 截取字符(substr),检索字符位置(instr) case when then else end语句使用 收藏 常用函数:substr和instr1.SUBSTR(string,start_position,[length]) 求子字符串,返回字符串解释:string 元字符串 s ...
分类:
数据库 时间:
2016-10-21 10:54:58
阅读次数:
203
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' ...
分类:
编程语言 时间:
2016-10-21 01:03:53
阅读次数:
139
从BST中移除一个节点是比较复杂的问题,需要分好几种情况讨论。 如这篇文章,就讨论了删除节点 1.有无左右子树 2.只有右子树 3.只有左子树 三种情况。 一种简单些的思维是只考虑删除节点是否有右子树(因为第一个比删除节点大的节点可能出现在右子树,不会出现在左子树)。 这里用Target表示删除节点 ...
分类:
其他好文 时间:
2016-10-18 11:35:16
阅读次数:
144
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a floati ...
分类:
其他好文 时间:
2016-10-13 07:45:21
阅读次数:
109
Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note: Given target value is a floati ...
分类:
其他好文 时间:
2016-10-13 07:44:58
阅读次数:
187
最近需要在A20上作一些工作。记录之。 任务1. A20上替换不同CSI接口Camera模组: 本来A20开发板上自带CSI接口模组gt2005. 但需要将其替换成ov2643. 1. 修改: android/device/softwinner/sugar-xbh_bst/init.sun7i.rc ...
分类:
其他好文 时间:
2016-10-10 16:46:34
阅读次数:
202
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. Given a singly linked list where element ...
分类:
其他好文 时间:
2016-10-09 07:21:51
阅读次数:
189