problem:
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
Hide Tags
Array Hash
Table Stack Dynamic
Programmin...
分类:
其他好文 时间:
2015-04-14 16:40:04
阅读次数:
110
package android.util;/** * Singleton helper class for lazily initialization. * * Modeled after frameworks/base/include/utils/Singleton.h * * @hide */p...
分类:
其他好文 时间:
2015-04-13 20:36:15
阅读次数:
120
常用Jquery常用操作:checkbox取值、select取值、radio选中、checkbox选中、select选中及其相关
1、影藏页面元素使用jquery真的很方便,比如要控制div的显示与隐藏,一句话就搞定了,请看下面使用说明。
$("#id").show()表示display:block,
$("#id").hide()表示display:none;
$("#id").toggle()切换元素的可见状态。如果元素是可见的,切换为隐藏的;如果元素是隐藏的,切换为可见的。...
分类:
Web程序 时间:
2015-04-11 00:04:51
阅读次数:
197
1、方法一(如果输入法在窗口上已经显示,则隐藏,反之则显示)
[java] view
plaincopyprint?
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0,...
分类:
移动开发 时间:
2015-04-10 15:34:15
阅读次数:
270
functionbackTop(){jQuery(window.top.document).find("html,body").animate({scrollTop:0},300);}jQuery(window).scroll(function(){if(jQuery(window).scrollTop()>1){jQuery("#backToTop").show(200);}else{jQuery("#backToTop").hide(200);}})
分类:
Web程序 时间:
2015-04-09 17:48:00
阅读次数:
137
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.Hide TagsTreeDepth-first Search方法一:递归,也是dfs/** * Defi...
分类:
其他好文 时间:
2015-04-09 17:08:07
阅读次数:
105
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.Hide TagsDepth-first SearchLinked List方法一...
分类:
其他好文 时间:
2015-04-09 16:50:31
阅读次数:
144
原文:http://www.cnblogs.com/zhwl/archive/2012/12/08/2808675.html第二个参数是控制程序主窗口的显示方式,可能的取值为 :SW_HIDE //程序启动后隐藏主窗口SW_MAXIMIZE //最大化运行SW_MINIMIZE //最小化运行SW_...
problem:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Hide Tag...
分类:
其他好文 时间:
2015-04-08 13:18:01
阅读次数:
117
problem:
Implement int sqrt(int x).
Compute and return the square root of x.
Hide Tags
Math Binary
Search
题意:计算平方根,没有指定精度,默认精度为0.00001
thinking:
(1)由于...
分类:
其他好文 时间:
2015-04-08 10:56:36
阅读次数:
192