一天一道LeetCode系列(一)题目
Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last word in the string.
If the last word does not exist, return...
分类:
其他好文 时间:
2016-05-27 12:56:30
阅读次数:
144
CombineLatest and withLatestFrom are both AND-style combination operators. In this lesson, we will learn about zip, our last AND-style combinator. It ...
分类:
Web程序 时间:
2016-05-26 20:29:53
阅读次数:
176
select * from v$sqlarea t order by t.LAST_ACTIVE_TIME desc 注意 :执行此语句等等一些相关的语句 必须具有DBA 的权限 虽然这条语句很普通 但是需要的时候很管用 能够及时查出一个人执行sql语句情况 oracle 查看已经执行过的sql 这 ...
分类:
数据库 时间:
2016-05-26 18:33:20
阅读次数:
283
1.POJ 1150 The Last Non-zero Digit #质因数分解+模运算分治# 先贴两份题解: http://www.hankcs.com/program/algorithm/poj-1150-the-last-non-zero-digit.html http://www.cppb... ...
分类:
其他好文 时间:
2016-05-26 18:26:50
阅读次数:
188
(by JP Zhang | Last updated: Apr 5, 2016 ) 转载自:http://www.softwarehow.com/best-blogs-for-ios-developers/ If you are looking for insightful and educati ...
分类:
移动开发 时间:
2016-05-26 14:39:06
阅读次数:
227
扫描每个WORD的长度并记录即可。 int lengthOfLast(const char *s) { //扫描统计每个word的长度 int len = 0; while (*s) { if (*s++ != ' ')//注意不管是否满足s都要++ len++; else if (*s && *s ...
分类:
其他好文 时间:
2016-05-26 10:23:26
阅读次数:
128
int width(BTree *bt) { BTree *p=bt; if(bt)return 0; BTree *q[100]; int front=0,rear=0;//队头指针,队尾指针 int last=0;//同一层最右结点在队列中位置 int temp=0,maxw=0;//当前层宽度 ...
分类:
其他好文 时间:
2016-05-26 10:06:55
阅读次数:
215
题意:给你一个无向图,判断是否存在长度为K的环。 思路:dfs遍历以每一个点为起点是否存在长度为k的环。dfs(now,last,step)中的now表示当前点,last表示上一个访问的 点,step一个记录路径长度的计数器,s【i】记录从起点到i点的路径长度。如果某点被访问第二次,则说明出现环,判 ...
分类:
其他好文 时间:
2016-05-25 18:34:08
阅读次数:
208
1、vi的基本概念 基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode),各模式的功能区分如下: 1) 命令行模式command mode) 控制屏幕光标的移动,字符、字或行的删除,移动复制某区段及进入I ...
分类:
系统相关 时间:
2016-05-24 19:07:16
阅读次数:
219
Problem 许多时候, 我们想要Table Variables在动态SQL中执行,但现实是很骨感的。比如这个示例: DECLARE @sql_command NVARCHAR(MAX); DECLARE @parameter_list NVARCHAR(MAX); DECLARE @last_n ...
分类:
数据库 时间:
2016-05-24 18:49:23
阅读次数:
218