The first time I came across django was last month.. Since then I was considering it as the better choice of building/maintaining websites. Now I thin ...
分类:
编程语言 时间:
2016-06-12 07:18:40
阅读次数:
190
题目链接:https://leetcode.com/problems/length-of-last-word/
题目:
Given a string s consists of upper/lower-case alphabets and empty space characters ' ',
return the length of last word in the st...
分类:
其他好文 时间:
2016-06-12 03:24:44
阅读次数:
191
目标
在本章中,你将学到:
识别栈的特性
实施栈
运用栈来解决编程问题
什么是栈?
栈就是一个只能访问其末尾数据的数据结构,这一端也叫做顶部。
数据仅能在顶部进行插入和删除操作。
最新插入的数据将被最先删除。
因此,栈也被称为后进先出数据结构(Last-In-First-Out)。
...
分类:
编程语言 时间:
2016-06-12 01:58:13
阅读次数:
221
约瑟夫环是一个数学的应用问题:已知有n个人,编号为1到n,围坐在一张圆桌周围,从第k个人开始报数(从1开始报),将数到m的人剔除出去,接下来的下一个人重新从1开始报数,如此反复进行,问最后一个被剔除的人是谁???
假设现在有n个人,从第1个人开始报数,数到m的人被剔除。
int check_last_del(int n,int m )
{
int i = 1;
in...
分类:
其他好文 时间:
2016-06-11 20:13:49
阅读次数:
289
Description The cows have reconstructed Farmer John's farm, with its N barns (1 <= N <= 150, number 1..N) after the terrible earthquake last May. The ...
分类:
其他好文 时间:
2016-06-11 00:28:26
阅读次数:
223
A 水 C 最短路 反向建边,记录当前点序号最小的前驱 D 归并排序技巧题 F dp记忆话搜索 dp[i][j][k][inx][last]:当前三种水果分别有i j k个的时候且当前放第inx类的水果,持续了last天的方案数 ...
分类:
其他好文 时间:
2016-06-10 17:40:39
阅读次数:
186
last:查看目前和过去的用户登录信息 lastlog:只显示用户最后登录信息 traceroute:查看网络路径 netstat:查看网络情况 参数:-t :tcp协议 -u:udp协议 -l:listen监听 -r:路由 -n:显示IP和端口号 常用用法:netstat -tlun ##显示本机 ...
分类:
系统相关 时间:
2016-06-10 11:05:23
阅读次数:
194
mysql教程主从同步失败Last_IO_Error: Got fatal error 1236 from master解决方法 遇到这样的错误如:“Last_IO_Error: Got fatal error 1236 from master when reading data from bina ...
分类:
数据库 时间:
2016-06-10 06:14:39
阅读次数:
428
Given an integer array, find a subarray with sum closest to zero. Return the indexes of the first number and last number. Given [-3, 1, 1, -3, 5], ret ...
分类:
其他好文 时间:
2016-06-09 22:19:04
阅读次数:
243
(Last modification: 2012-12-17) (Last modification: 2012-12-17) Textbooks: (1) David Williamson, David Shmoys. The Design of Approximation Algorithms, ...
分类:
编程语言 时间:
2016-06-09 18:38:42
阅读次数:
284