Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他 时间:
2015-02-05 16:30:03
收藏:
0 评论:
0 赞:
0 阅读:
181
内部类
1、在该外部类以外的地方访问外部类中成员位置上非静态的内部类。
2、在外部类以外的地方访问外部类中成员位置上静态的内部类。
3、在外部类以外的地方访问外部类中成员位置上静态内部类中的静态成员。
4、在内部类的方法中分别访问外部类的成员变量、内部类中的成员变量、内部类中的局部变量...
分类:
其他 时间:
2015-02-05 16:29:53
收藏:
0 评论:
0 赞:
0 阅读:
85
HICON icon[4];
icon[0] = AfxGetApp()->LoadIcon(IDI_ICONA);
icon[1] = AfxGetApp()->LoadIcon(IDI_ICONB);
icon[2] = AfxGetApp()->LoadIcon(IDI_ICONC);
icon[3] = AfxGetApp()->LoadIcon(IDI_ICOND);
CI...
分类:
其他 时间:
2015-02-05 16:29:07
收藏:
0 评论:
0 赞:
0 阅读:
351
年关将至,许多IT从业者都喜欢写下过去的一年里感慨,做个年终总结,那我学习下这个潮流,说说我在这过去的一年里我的那些遭遇。
就在写下这篇文章前些天,我一个亲人在武汉的工地上去世了,明明是身体多么结实的人,说没了就没了,原因就是因为脑溢血突发,人生在世几多唏嘘,这是我第一次以晚辈的身份去参加葬礼,穿上那孝衣。
感到高兴的事情,我记得的只有两件,一件是我找到一份远程工作,经理人不错,带着我学了不少...
分类:
其他 时间:
2015-02-05 16:28:27
收藏:
0 评论:
0 赞:
0 阅读:
200
原因一:距离不同
距离不是主要因素,但是最好懂,所以放在最前面说。内存离CPU比较远,所以要耗费更长的时间读取。
以3GHz的CPU为例,电流每秒钟可以振荡30亿次,每次耗时大约为0.33纳秒。光在1纳秒的时间内,可以前进30厘米。也就是说,在CPU的一个时钟周期内,光可以前进10厘米。因此,如果内存距离CPU超过5厘米,就不可能在一个时钟周期内完成数据的读取,这还没有考虑硬件的限制和...
分类:
其他 时间:
2015-02-05 16:28:17
收藏:
0 评论:
0 赞:
0 阅读:
193
类似微信的操作栏,仿三级菜单,实现伸缩展开,填写数据,实现对键盘输入监听,数据同步。...
分类:
其他 时间:
2015-02-05 16:27:57
收藏:
0 评论:
0 赞:
0 阅读:
203
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to
...
分类:
其他 时间:
2015-02-05 16:27:37
收藏:
0 评论:
0 赞:
0 阅读:
288
标题:一个类在另一个类中以集合形式声明为属性时应该注意的问题,先解释一下,看下面的代码吧
[Serializable]
public class MO_T_sj_quest
{
public List AnswerList { get; set; }
public List IDList { get; set; }
p...
分类:
其他 时间:
2015-02-05 16:27:18
收藏:
0 评论:
0 赞:
0 阅读:
115
第一步:添加一个下拉列表项的list,这里添加的项就是下拉列表的菜单项:
private List list = new ArrayList();
list.add("北京");
list.add("上海"); ==========》》数据源
list.add("广州");
list.add("深...
分类:
其他 时间:
2015-02-05 16:26:57
收藏:
0 评论:
0 赞:
0 阅读:
208
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...
分类:
其他 时间:
2015-02-05 16:26:47
收藏:
0 评论:
0 赞:
0 阅读:
287
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7}...
分类:
其他 时间:
2015-02-05 16:26:27
收藏:
0 评论:
0 赞:
0 阅读:
234
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
难度系数:
容易
实现
int maxDepth(Tr...
分类:
其他 时间:
2015-02-05 16:26:07
收藏:
0 评论:
0 赞:
0 阅读:
189
zigbee协议栈版本: z-stack home 1.2.1
1、按键的初始化:协议栈的按键初始化主要有两个地方,一个是初始化开始,一个是初始化结束。
int main( void )
{
。。。。
InitBoard( OB_COLD ); //第一次初始化按键
。。。。
InitBoard( OB_READY );
。。。。
}
...
分类:
其他 时间:
2015-02-05 16:25:57
收藏:
0 评论:
0 赞:
0 阅读:
417
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d =
target? Find all unique quadruplets in the array which gives the sum of target.
Note
Elements i...
分类:
其他 时间:
2015-02-05 16:25:17
收藏:
0 评论:
0 赞:
0 阅读:
205
第四部分
自从换了路由器之后,丢包少了,画面稳了,心情也好了。
今天上午ubuntu搜狗输入法突然不好使了,不能输入汉字了,真别扭阿。赶紧百度怎么办,搜到一条命令,删除IBus,具体什么命令我就不说了,坑阿!删除了以后整个系统设置都快全消失了。有人说这是ubuntu的BUG,谁知道呢,最后重装desk-top才行了。
sudo apt-get instal ubuntu-desktop所以阿...
分类:
其他 时间:
2015-02-05 16:25:07
收藏:
0 评论:
0 赞:
0 阅读:
467
题目大意:给出一棵树,每个节点都有一个充电概率,每一条边有一个导电概率,求期望有多少个点充电。
思路:写不出题解,粘一个详细的地址:http://wyfcyx.is-programmer.com/posts/74623.html
CODE:
#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
#...
分类:
其他 时间:
2015-02-05 16:24:57
收藏:
0 评论:
0 赞:
0 阅读:
541
今天跟大家一起来学习一下LTE的协议结构:
根据LTE网络架构中数据流和信令流的走向,将协议结构分为UE,E-NodeB,MME,SGW四个部分。同时分为控制面协议架构和用户面协议架构。
首先从控制面协议架构开始讲起:
NAS:(Non-access stratum 非接入层),存在于UMTS的无线通信协议栈中,作为核心网与用户设备之间的功能层。该层支持在这两者之间的信令和数据传输。功能:认...
分类:
其他 时间:
2015-02-05 16:24:07
收藏:
0 评论:
0 赞:
0 阅读:
634
今天使用NGUI的TweenScale时遇到一个问题
使用时TweenScale是用两次,playForward()和playReverse(),要求playForward()后啥都不做,playReverse()后执行函数
由于动画播放需要时间,不可能执行完playReverse()代码就执行指定函数
NGUI提供了对应的委托处理,所以思路上是在playForwar...
分类:
其他 时间:
2015-02-05 16:23:57
收藏:
0 评论:
0 赞:
0 阅读:
445
??
这种题目太像是数学题目了,不过拿到编程上又有一些的难度。我们先根据题目中的条件,写出类似于第25页最下面的变换规则。我们先列出如下内容:
a-- f(n-1) f(2)
f(3) f(4) f(5)
b-- f(n-2) f(1)
f(2) f(3) f(4)
c—f(n-3) f(0)
f(1) f(2) f(3)
于是继而得出下式:
...
分类:
其他 时间:
2015-02-05 16:23:47
收藏:
0 评论:
0 赞:
0 阅读:
266
??
这道练习的翻译有误。原文是:Write a procedure that computes elements of Pascal’s triangle bymeans of a recursive process.正确的翻译应该是计算帕斯卡三角形的各个元素。
y :
0 1
1 1
1
2 1
2 1
3 1
...
分类:
其他 时间:
2015-02-05 16:23:37
收藏:
0 评论:
0 赞:
0 阅读:
262