一 Words 1 ought to 应该v 2 occupation 职业n,占用v eg. He is a teacher by occupation but a philosopher by inclination倾向,爱好.他的职业是教师,但他的本心是成为哲学家。 3 job satisfa...
分类:
其他 时间:
2014-08-04 08:17:06
收藏:
0 评论:
0 赞:
0 阅读:
328
1Web开发相关概念.AVI内容:html/css目标:掌握手写html实现一般难度的web页面的能力(如网站注册表单),为asp.net学习打基础。坚持手写html,可视化设计只是一种自学的手段。参考书:张孝祥《javascript网页开发---体验式学习教程》什么是浏览器?浏览器就是接受浏览者的...
分类:
Web开发 时间:
2014-08-04 08:16:56
收藏:
0 评论:
0 赞:
0 阅读:
471
Console.WriteLine("hello");Console.ReadKey();// 按一个按键继续执行string s=Console.ReadLine();//用户输入文字的时候程序 是暂停的 ,用户输入玩 必点回车,把用户输入的作为返回值,声明一个string 类型的变量(容器)s,...
分类:
其他 时间:
2014-08-04 08:16:16
收藏:
0 评论:
0 赞:
0 阅读:
342
使用两个指针,和判断一个链表是否形成环类似
代码:
#include
#include
using namespace std;
typedef struct node {
int data;
struct node *next ;
}Node,*pNode;
void creatNode( pNode &pHead ){
bool isFirst=true;
pNode p...
分类:
其他 时间:
2014-08-04 06:14:16
收藏:
0 评论:
0 赞:
0 阅读:
317
不相交集合 故名思意就是一种含有多个不相交集合的数据结构。典型的应用是确定无向图中连通子图的个数。其基本操作包括:Make-Set(x):建立一个新的集合,集合的成员是x;Union(x,y): 将包含x和y的集合合并为一个集合;Find-Set(x): 返回指向包含x的集合的指针;下面是一个例子,...
分类:
其他 时间:
2014-08-04 06:13:46
收藏:
0 评论:
0 赞:
0 阅读:
350
题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".题解:二进制加法都是从最低位(从右加到左)。所以对两个字符串要从最后一位开始加,....
分类:
编程语言 时间:
2014-08-04 06:13:36
收藏:
0 评论:
0 赞:
0 阅读:
352
public abstract class Vehicle { protected ParkingSpace pSpace; public abstract boolean park(ParkingLot pLot); public boolean unpark(ParkingLot p...
分类:
其他 时间:
2014-08-04 06:13:26
收藏:
0 评论:
0 赞:
0 阅读:
377
This is called programming to interface. This will be helpful in case if you wish to move to some other implementation of List in the future. If you w...
分类:
其他 时间:
2014-08-04 06:13:06
收藏:
0 评论:
0 赞:
0 阅读:
391
题目:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read ....
分类:
编程语言 时间:
2014-08-04 04:11:06
收藏:
0 评论:
0 赞:
0 阅读:
363
今天大概的整理了一下java集合框架,在这里做一个小结,方便以后查阅,本博文主要参考资料为《java编程思想第四版》第11章——持有对象以及JAVA 1.6 API文档。并没有研究更深入的第17章。大概介绍了集合框架中几个比较常用的集合类。以下为正文。首先来看一张图,不太会用visio,画的可能不太...
分类:
编程语言 时间:
2014-08-04 04:10:56
收藏:
0 评论:
0 赞:
0 阅读:
439
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total ....
分类:
编程语言 时间:
2014-08-04 04:10:46
收藏:
0 评论:
0 赞:
0 阅读:
297
题目:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo....
分类:
编程语言 时间:
2014-08-04 04:10:26
收藏:
0 评论:
0 赞:
0 阅读:
422
题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes....
分类:
编程语言 时间:
2014-08-04 04:09:56
收藏:
0 评论:
0 赞:
0 阅读:
392
尽管C++支持C风格字符串,但在C++程序中最好还是不要使用它们。这是因为C风格字符串不仅使用起来不太方便,而且极易引发程序漏洞,是诸多安全问题的根本原因。字符串字面值是一种通用结构的实例,这种结构即是C++由C继承而来的C风格字符串。C风格字符串不是一种类型,而是为了表达和使用字符串而形成的一种约...
分类:
其他 时间:
2014-08-04 04:09:46
收藏:
0 评论:
0 赞:
0 阅读:
346
对于runtime机制,在网上找到的资料大概就是怎么去用这些东西,以及查看runtime.h头文件中的实现,当然这确实是一种很好的学习方法,但是,其实我们还是不会知道runtime底层编译成C++语言之后做了什么? 查到一个...
分类:
移动平台 时间:
2014-08-04 02:08:36
收藏:
0 评论:
0 赞:
0 阅读:
448
产生验证码的类位于ThinkPHP/Extend/Library/ORG/Util/Image.class.php文件中。 验证码函数参数解释: length:验证码的长度,默认为4位数 model:验证字符串的类型,默认为数字,其他支持类型有0 字母 1 数字 2 大...
分类:
Web开发 时间:
2014-08-04 02:08:26
收藏:
0 评论:
0 赞:
0 阅读:
417
题目链接:hdu 4908 BestCoder Sequence
题目大意:给定N和M,N为序列的长度,由1~N组成,求有多少连续的子序列以M为中位数,长度为奇数。
解题思路:v[i]记录的是从1~i这些位置上有多少个数大于M,i-v[i]就是小于M的个数。pos为M在序列中的位置。如果有等式i?j=2?(v[i]?v[j?1]),i≥pos≥j,那么i和j既是一组满足的情况。将等式变...
分类:
其他 时间:
2014-08-04 02:07:26
收藏:
0 评论:
0 赞:
0 阅读:
375
空两格 ,不是传统,也不为礼貌,只能说,这是规范...
分类:
其他 时间:
2014-08-04 02:07:16
收藏:
0 评论:
0 赞:
0 阅读:
344
~~~~
二维的最长上升子序列。n^2算法居然可以水过。。
就不多说了,排个序,然后DP。
题目链接:http://poj.org/problem?id=1609
~~~~
#include
#include
#include
#include
#define N 11111
using namespace std;
struct node
{
int l,m;
}b[N];
...
分类:
其他 时间:
2014-08-04 02:07:06
收藏:
0 评论:
0 赞:
0 阅读:
369
题目链接:hdu 4909 String
题目大意:给定一个字符串,由小写字母组成,最多包含一个问号,问号可以表示空或者任意一个字母。问有多少个子串,字母出现的次数均为偶数。
解题思路:因为最多又26个字母,对应每个字母的奇数情况用1表示,偶数情况用0.将一个前缀串表示成一个二进制数。然后对于每种相同的数s,任选两个即为一种可行子串(组合数学). 接着对于有问号的情况枚举一下问号替代的...
分类:
其他 时间:
2014-08-04 02:06:56
收藏:
0 评论:
0 赞:
0 阅读:
267