码迷,mamicode.com
首页 >  
搜索关键字:sunday    ( 300个结果
POJ
2080 Calendar 1 #include 2 int type(int); /*判断是否为闰年*/ 3 char week[7][10]={"Saturday","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday"}; 4.....
分类:其他好文   时间:2015-04-01 13:05:57    阅读次数:122
C# - How to Initialize Flags Enumerations
?? The most common way to initialize flags is to use hexadecimal literals.  This is how Microsoft and most C# developers do it: [Flags] public enum DaysOfTheWeek { None = 0, Sunday = 0x01, Monday...
分类:编程语言   时间:2015-03-31 20:12:19    阅读次数:123
查找字符串
字符串查找算法在于其效率的高低,单个字符的一次比较从头到尾遍历一遍肯定能找出来,但这样效率太低。比较著名的算法有KMP和BM(KMP看着烦躁),但个人来说,Sunday算法是我最能理解且效率不错的算法(而且代码很简单啊)。sunday算法关注的是模式串的下一个字符的匹配情况(因为字符串不匹配的话,模...
分类:其他好文   时间:2015-03-31 17:29:36    阅读次数:180
python calendar标准库基础学习
#-*-coding:utf-8-*-#作者:新手__author__='Administrator'#标准库:日期时间基础学习:calendar:处理日期#例1importcalendarc=calendar.TextCalendar(calendar.SUNDAY)c.prmonth(2015,...
分类:编程语言   时间:2015-03-15 00:48:19    阅读次数:219
(hdu 简单题 128道)hdu 1194 Beat the Spread!(已知两个数的和u两个数的差求这两个数)
题目:Beat the Spread!Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5169    Accepted Submission(s): 2692Problem DescriptionSuperbowl Sunday is ne...
分类:其他好文   时间:2015-03-12 20:56:37    阅读次数:159
Implement strStr[]
这道题是字符串匹配,用的Sunday算法[1],边界条件是模式串和原串为空的情况。[1]字符串匹配算法 – Sunday算法 - 如斯夫 - 博客园 http://www.cnblogs.com/lbsong/archive/2012/05/25/2518188.html代码如下:class Sol...
分类:其他好文   时间:2015-02-25 15:35:45    阅读次数:138
字符串模式匹配sunday算法
今天在做LeetCode的时候,碰到一个写字符串匹配的题目:https://oj.leetcode.com/problems/implement-strstr/我一看就懵了,字符串模式匹配我记得当时在上数据结构的时候,书上只写了BF和KMP算法,老师说考试“只可能会考BF”,KMP不要求掌握。然后出...
分类:编程语言   时间:2015-02-11 14:20:09    阅读次数:215
万年历
万年历系统 #include #include char* month_str[]={"January","February","March","April","May","June","July","August","September","October","November","December"}; char* week[]={"Sunday","Monday","Tuesda...
分类:其他好文   时间:2015-01-31 14:38:28    阅读次数:145
【JAVA】Calendar
Calendar是JDK 1.1增加的类最近使用了下Calendar发现几个很让人抓狂的问题源码:public final static int SUNDAY = 1;public final static int MONDAY = 2;public final static int TUESDAY...
分类:编程语言   时间:2015-01-18 22:35:32    阅读次数:220
shell相关知识
在bashshell中,$( )与` ` (反引号)都是用来做命令替换用(command substitution)的。所谓的命令替换与我们第五章学过的变量替换差不多,都是用来重组命令行:*完成引号里的命令行,然后将其结果替换出来,再重组命令行。例如:$ echo the last sunday i...
分类:系统相关   时间:2015-01-12 14:34:32    阅读次数:210
300条   上一页 1 ... 25 26 27 28 29 30 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!