Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The si...
分类:
其他好文 时间:
2015-01-25 22:19:38
阅读次数:
171
1、ORDER BY 中关于NULL的处理缺省处理,Oracle在Order by 时觉得null是最大值,所以假设是ASC升序则排在最后,DESC降序则排在最前。当然,你也能够使用nulls first 或者nulls last 语法来控制NULL的位置。Nulls first和nulls las...
分类:
其他好文 时间:
2015-01-25 20:54:33
阅读次数:
110
#coding:utf-8fromrandomimportrandintnum=randint(1,100)print"guesstherightnumber,sopleaseinputanumber:"a=1whilea==1:answer=input()##把输入赋值给answer以便条件中用到比较大小ifanswer<num:print"it‘stoosmall"ifanswer>num:print"it‘stoobig"ifanswer==num:prin..
分类:
编程语言 时间:
2015-01-25 19:44:32
阅读次数:
152
从这段话开始吧:你一天到晚心烦意乱,必定一事无成。你既然期望辉煌伟大的人生,那就应该从今天起,以毫不动摇的决心和坚定不移的信念,凭自己的智慧和毅力,去创造属于你和人类的快乐。只有这样,你的生命才能焕发青春。只有你的言行服从你的理想,那你就把握赢得健康,快乐..
分类:
其他好文 时间:
2015-01-25 19:43:11
阅读次数:
128
Cell Object MembersHolds a formula that evaluates to some value.MethodsNameDescriptionGlueToGlues one shape to another, from a cell in the first shape...
分类:
编程语言 时间:
2015-01-25 19:32:48
阅读次数:
139
题目:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together
the nodes of the first two lists.
思路:
设置两个头指针,一个指针不动,用来返回最后头结点,一个指针用来组织节点顺序,遍...
分类:
其他好文 时间:
2015-01-25 18:18:40
阅读次数:
203
对一棵树黑白染色一定符合题意。图一定有生成树。因此,仅有一个孤立节点的联通块不合题意。DFS。#includeusing namespace std;int n,m,en,x,y,v[1000001],first[500001],next[1000001],cnt;bool vis[500001];...
分类:
其他好文 时间:
2015-01-25 07:39:30
阅读次数:
246
#include#include#include#include#includeusing namespace std;#define INF 100000000int u[6000],v[6000],w[6000];int first[6000],next[6000];int coun[6000]...
分类:
其他好文 时间:
2015-01-25 06:28:52
阅读次数:
138
The problem:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents...
分类:
其他好文 时间:
2015-01-25 01:20:47
阅读次数:
190
这题题目没怎么弄清,不知道循环旋转的时候从哪开始,也就不想了,写个简答的约瑟夫循环
#include
using namespace std ;
struct LinkNode {
LinkNode *link ;
int data ;
} ;//dingyi
void CreatList (LinkNode *first,int number) {
// LinkNode *...
分类:
其他好文 时间:
2015-01-24 22:47:49
阅读次数:
142