Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:
其他好文 时间:
2014-11-17 01:39:53
阅读次数:
173
实现效果:当鼠标放上去时,显示英文字母.CSS代码:*{ margin:0px; padding:0px; }#menu{ margin-top:50px; margin-left:50px; font-size:12px; font-weight:bold; border-bottom:solid...
分类:
其他好文 时间:
2014-11-16 20:02:46
阅读次数:
208
原文:Magic of CSS border property
译文:不可思议的CSS border属性
译者:dwqs
在CSS中,其border属性有很多的规则。对于一些事物,例如三角形或者其它的图像,我们仍然使用图片代替。但是现在就不需要了,我们可以用CSS形成一些基本图形,我分享了一些关于这方面的技巧。
1、正三角形:
.triangle_up
{
height:0px; width:0px;
border-bottom:50px solid #006633;
border-l...
分类:
Web程序 时间:
2014-11-16 00:37:49
阅读次数:
222
private void Form2_Load(object sender, EventArgs e)
{
CreateMenu();
}private void CreateMenu()
{
//定义菜单条
Bar bar = new Bar("Menu Bar");
bar.MenuBar = true;
bar.Stretch = true;
...
隐藏最顶端的通知条(Top Notification Bar/ActionBar)本文地址: http://blog.csdn.net/caroline_wendyAndroid中, 视频播放等功能需要全屏播放, 就需要隐藏最上面的Notification Bar/ActionBar;最上面的Bar, 其实是与Theme有关, 在Theme中有些设计样式(style), 就可以隐藏这个”条".代码...
分类:
移动开发 时间:
2014-11-15 08:54:51
阅读次数:
165
UVA10721 - Bar Codes(DP)
题目链接
题目大意:给你n, k, m, 要求满足BC(n,k,m)bar code的数目。n表示这样的字符串长度为n,k表示相同颜色的段落有k段,m代表每段内最多只能有m个相同的。
解题思路:f[n][k][m]:表示第i个位置的字符,现在已经形成了k段,长度为m。
f[n][k][m] = f[n + 1][k][m + 1...
分类:
其他好文 时间:
2014-11-15 08:53:15
阅读次数:
225
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining....
分类:
移动开发 时间:
2014-11-15 07:47:26
阅读次数:
242
这次相对来讲复杂点,题目如下:
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:27:53
阅读次数:
174
这次相对来讲复杂点,题目如下: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:23:35
阅读次数:
192
python中的函数使用较简单,这里列出值得注意的几点: 内嵌函数 例如: # coding: utf-8 def foo(): def bar(): print 'bar() called.' print 'foo() called.' foo()
bar() 对bar的调用是非法的,因为bar的...
分类:
编程语言 时间:
2014-11-14 22:25:50
阅读次数:
326