转载地址:http://www.douban.com/note/208397087/具体方法: 1. 手机获取root权限; 2. 手机下载安卓终端应用(例如:Better Terminal) 3. 手机端打开终端应用输入: su setprop service.adb.tcp.p...
分类:
移动开发 时间:
2014-07-22 22:53:33
阅读次数:
224
What if the given tree could be any binary tree? Would your previous solution still work?Note:You may only use constant extra space.For example,Given ...
分类:
其他好文 时间:
2014-07-22 08:37:34
阅读次数:
289
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-07-22 00:28:38
阅读次数:
209
xmlns:sys="clr-namespace:System;assembly=mscorlib" NOTE: System;与assembly中间不能有空格否则报错,Error 1 The URI "clr-namespace:System; assembly=mscorlib" is not ...
分类:
其他好文 时间:
2014-07-22 00:22:33
阅读次数:
333
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:
其他好文 时间:
2014-07-21 14:11:16
阅读次数:
151
给定一棵二叉树, 如何确定这棵二叉树的高度(即树的最大的深度), 是一个很常见的问题。
给下图回顾一下:
关于高度和深度的概念, 参见上图。
NOTE: 高度: 参考节点是距离节点最远的叶子
深度: 参考节点是根节点
寻找二叉树的高度也可以通过一个递归函数(a recursive function)实现, 这依然源于树是一个递归的数据结构。
例如, 对于下图, 我们可以求出根...
分类:
编程语言 时间:
2014-07-21 09:18:35
阅读次数:
344
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-07-21 00:39:31
阅读次数:
249
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:如下图所示的一棵树: ...
分类:
其他好文 时间:
2014-07-19 19:00:44
阅读次数:
262
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.类似http://www.cn...
分类:
其他好文 时间:
2014-07-19 18:19:06
阅读次数:
243
这个方法解决了我的windows下 gvim的中文乱码问题(跟大家分享一下)、此方法引用 http://www.douban.com/note/145491549/查看文件的编码::echo &fileencodingVim 有四个跟字符编码方式有关的选项,encoding、fileencoding...