public class Employee { // 只有SourceType== Salary 才转账 public void TransferToEmployee([TransferSource(TransferType = TransferSourceType.Salary)]int numb... ...
分类:
其他好文 时间:
2018-01-14 13:50:44
阅读次数:
151
一、问题描述 给定一个链表和一个数n,要求删除该链表的倒数第n个节点。给定n一定是合理的,只遍历一遍 例子:给定链表1->2->3->4->5,n=2,执行删除操作之后链表变成1->2->3->5。 二、问题解决 这种遍历一遍找出第几个、倒数第几个、中间节点的题,都是通过两个节点来解决,本题中,先让 ...
分类:
其他好文 时间:
2018-01-14 12:04:20
阅读次数:
123
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:
其他好文 时间:
2018-01-13 20:44:40
阅读次数:
134
1 /*标准写法*/ 2 .item:nth-child(1) .linear-gradient { 3 background-image: linear-gradient(yellow, green); 4 } 5 6 /*多个颜色渐变*/ 7 .item:nth-child(2) .linear ...
分类:
其他好文 时间:
2018-01-10 18:46:51
阅读次数:
124
/*从一个中心点开始沿着四周方向进行渐变*/ .item:nth-child(1) .radial-gradient { background-image: radial-gradient(yellow, green); } /*1、辐射范围 2、中心点 3、颜色的起止*/ .item:nth-ch... ...
分类:
其他好文 时间:
2018-01-10 18:36:21
阅读次数:
152
这次的题目是VH难度,难度很大,不过啃下来的收获也颇多。 题意: 给出3*10^5个员工的工资,工资范围10^9,所有员工的工资必须满足如下约束:每个员工的工资不能高于其上司的工资,否则就要给其上司涨工资,使上司的工资和下属相同。 先一次给出每个员工的上司信息和工资,求涨工资的总次数。 详细描述如下 ...
分类:
其他好文 时间:
2018-01-10 11:29:58
阅读次数:
146
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:
其他好文 时间:
2018-01-09 22:16:58
阅读次数:
205
1、这是w3school上的解释: 2、自己的jq编程例子中 在24 行中是$("div :nth-child(1)").addClass("c4");, 运行效果: 所以在此处可以理解为$("div :nth-child(1)").addClass("c4");是: 选取div,然后给它下面的“所 ...
分类:
其他好文 时间:
2018-01-05 20:52:17
阅读次数:
166
leetcode-19-Remove Nth From End of List—移除链表中倒数第n个元素 leetcode-21-Merge Two Sorted Lists—两个已排序链表归并 leetcode-23-Merge k Sorted Lists—k个已排序链表归并 leetcode- ...
分类:
其他好文 时间:
2018-01-01 18:22:24
阅读次数:
129
一、选择元素父级的子元素(包含其它不相同的元素) (1)li:first-child { }; 选择第一个子元素(注意这里没有括号) (2)li:last-child { }; 选择ul中最后一个子元素 (3)li:nth-child(3) { }; 顺数第三个元素 (4) li:nth-last- ...
分类:
Web程序 时间:
2017-12-29 19:03:12
阅读次数:
290