首先说first-child与last-child,这两个选择器很容易明白,就是父元素下的第一个子元素和最后一个子元素。而nth-child和nth-last-child则是父元素下指定序号的子元素,甚至第偶数个、奇数个子元素精选样式的制定。/*选择器写法示例*/nth-child(n) //正数第...
分类:
Web程序 时间:
2014-12-05 12:26:19
阅读次数:
178
One: Using two stacks, stack to traversal the node, stackr to record the parent node when visiting its right-child; https://oj.leetcode.com/problems.....
分类:
其他好文 时间:
2014-12-05 00:30:18
阅读次数:
158
B. The Child and Zoo
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Of course our child likes walking in a...
分类:
编程语言 时间:
2014-12-04 21:42:58
阅读次数:
283
#include "iostream.h"
using namespace std;
//因为i从0开始
#define LeftChild(i) (2*(i)+1)
//i-N范围内,创建最大堆
void maxHeap(int A[], int i, int N){
int tmp;
int child;
for(tmp=A[i];LeftChild(i)<N;i=child){...
分类:
编程语言 时间:
2014-12-04 20:03:10
阅读次数:
218
:nth-child是一个非常牛逼的伪类,如果你能很好的理解它就可以用CSS 做出很多非常实用的效果。当我很年轻的时候还使用PHP的i++来实现一些东西,其实CSS 完全可以实现。下面是我总结的一些用法,用了可爱的糖糖做演示,彩色头像就代表选中,T,T。
分类:
Web程序 时间:
2014-12-04 11:38:34
阅读次数:
130
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi...
分类:
其他好文 时间:
2014-12-03 13:58:52
阅读次数:
150
[LeetCode] Candy (分糖果),时间复杂度O(n),空间复杂度为O(1),且只需遍历一次的实现原题:There areNchildren standing in a line. Each child is assigned a rating value.You are giving c...
分类:
其他好文 时间:
2014-12-02 01:33:37
阅读次数:
309
hadoop:mapred.child.java.opts-Xmx1024mPS:该选项默认是200M
分类:
编程语言 时间:
2014-12-01 22:22:17
阅读次数:
148
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi...
分类:
其他好文 时间:
2014-12-01 15:37:11
阅读次数:
225
描述When Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1 cup of water plus 1 pile of dough ..” , “100 y...
分类:
其他好文 时间:
2014-11-30 06:07:23
阅读次数:
155