码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
前端开发学习笔记五
幽灵按钮最近很流行,就寻思着做了一个,它有如下一些效果。其中按钮上的线条和图标的旋转完全用css3中的transtion和transform来实现,其中图标的旋转效果实现过程如下:.link .img{ display: block; width:180px; height:180...
分类:其他好文   时间:2015-01-01 15:56:46    阅读次数:258
[leetcode] Largest Rectangle in Histogram
题目:(Stack)Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in ...
分类:其他好文   时间:2015-01-01 06:41:45    阅读次数:124
Leetcode:Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.分析:对于BST,左右子树的高度差小于等于1,则在由sorted array构建BST时把数组中间元素作为...
分类:其他好文   时间:2014-12-31 16:04:01    阅读次数:198
CSS从大图片上截取小图标的操作(转)
一张图片,用CSS分割成多个小图标。css样式:[css]view plaincopy.icon{background:url(../images/tabicons.png)no-repeat;width:18px;line-height:18px;display:inline-block;}.tu...
分类:Web程序   时间:2014-12-31 13:02:05    阅读次数:317
BZOJ 3238 AHOI 2013 差异 后缀数组+单调栈
题目大意: 思路:一看各种后缀那就是后缀数组没跑了。 求出sa,height之后就可以乱搞了。对于height数组中的一个值,height[i]来说,这个值能够作为lcp值的作用域只在左边第一个比他小的位置到右边第一个比他小的位置。这个东西很明显可以倍增RMQ+二分/单调栈。 之后就是数学题了 Σlen[Ti] + len[Tj] = (len + 1) * len * (len ...
分类:编程语言   时间:2014-12-30 23:47:04    阅读次数:499
WebViewJavascriptBridge
CGRect?screenFrame?=?[[UIScreen?mainScreen]?bounds]; ????webView?=?[[UIWebView?alloc]?initWithFrame:CGRectMake(0,?38.0,?screenFrame.size.width,?(screenFrame.size.height-122.0))]; ...
分类:编程语言   时间:2014-12-30 17:23:23    阅读次数:199
Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 将增序数组转换为左右均衡的二叉查找树 根据查找树的性质 左子树所有节点小于根节点值 右边都大于根节点值 子树也遵循此性质 所以只要取出增序数组的中间值作为根节点 再将左右子数组进行递归 代码如下: p...
分类:其他好文   时间:2014-12-30 17:18:32    阅读次数:168
Balanced Binary Tree
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 diffe...
分类:其他好文   时间:2014-12-30 17:13:32    阅读次数:135
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. 将增序链表转换为均衡的二叉查找树 与数组转换相同 找到链表的中间结点 作为树的根节点进行赋值  再将链表以中间节点为界 分为左右子链表 进行递归赋值 代码如下: publi...
分类:其他好文   时间:2014-12-30 17:11:39    阅读次数:149
Firefox SVG getBBox方法返回'NS_ERROR_FAILURE'错误分析
在SVG中,我们无法给Text元素设置Width和Height属性,因此无法直接获取Text元素的高和宽。如果想要给Text元素添加背景色,最简单的办法就是在Text元素的下面添加Rect,然后给Rect设置fill属性。如下面的代码:2014-09-11 显示效果 但是如果Text元素的字...
分类:其他好文   时间:2014-12-30 14:48:37    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!