问题一:KindEditor放在隐藏的元素里面,当用jq控制其显示时KindEditor编辑器显示不出来。解决方法:在textarea 加个宽
就OK了相关链接1:http://kindeditor.net/ke4/examples/dynamic-load.html相关链接2:http://kin...
分类:
其他好文 时间:
2014-06-29 12:44:20
阅读次数:
184
题目
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
方法
数组是有序的,要求创建的二叉树尽量平衡,很容易想到对数组进行二分操作,左边的数组元素是左子树,右边的数组元素是右子树。进行递归操作就可以了。
TreeNode...
分类:
其他好文 时间:
2014-06-20 11:06:46
阅读次数:
257
【题目】
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
【题意】
判断二叉树是否是平衡二叉树
【思路】
平衡二...
分类:
其他好文 时间:
2014-06-20 11:02:54
阅读次数:
173
题目
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
方法
和有序数组的思想基本一样,将链表进行二分。
TreeNode getBST(ListNode head, int len) {
i...
分类:
其他好文 时间:
2014-06-20 09:46:33
阅读次数:
267
题目
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node...
分类:
其他好文 时间:
2014-06-20 09:02:56
阅读次数:
232
在利用air的CameraRoll调取ios设备的相册时需要定义位置。我们一般这么操作var
crOpts:CameraRollBrowseOptions = new CameraRollBrowseOptions();crOpts.height =
480;crOpts.width = 320;c...
分类:
其他好文 时间:
2014-06-07 10:22:47
阅读次数:
227
Objective-C有相当多的动态特性,基本上也是最常用的有动态类型(Dynamic
typing)、动态绑定(Dynamic binding)和动态加载(Dynamic
loading),这些都是在Cocoa程序开发中非常常用的语言特性,在此之后OC底层也提供了相当丰富的运行时特性,比如枚举.....
分类:
其他好文 时间:
2014-06-07 10:18:18
阅读次数:
313
if (self.tableView.contentSize.height >
self.tableView.frame.size.height) { CGPoint offset = CGPointMake(0,
self.tableView.contentSize.heig...
分类:
其他好文 时间:
2014-06-07 08:40:38
阅读次数:
187
给一个HTML元素设置css属性,如var head=
document.getElementById("head");head.style.width = "200px";head.style.height =
"70px";head.style.display = "block";这样写太罗嗦了...
分类:
Web程序 时间:
2014-06-06 08:38:08
阅读次数:
277
原文:CSS3+HTML5特效8 -
顶部和右侧固定,左侧随窗口变化的布局效果演示实现原理使用3个div(一个是顶部栏,一个是左侧栏,一个是右侧栏);使用checkbox作为判断是否显示和隐藏右侧栏,点击显示和隐藏label实现最终效果。代码说明css
设置了顶部div,height为30px,wi...
分类:
Web程序 时间:
2014-06-05 15:00:18
阅读次数:
389