public int LengthOfLongestSubstring(string s) { Queue queue=new Queue(); int max=0; for(int i=0;i<s.Length;i++) { if(queue.Contain...
分类:
其他好文 时间:
2015-08-21 23:14:27
阅读次数:
148
UVa 1380A Scheduling Problem题目:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=41557思路: (/▽\=)代码: 1 // UVa1380 A Scheduling Problem 2 //.....
分类:
其他好文 时间:
2015-08-20 14:49:28
阅读次数:
190
1 题目
Given a string,find the length of the longest substring without repeating characters. Forexample, the longest substring without repeating letters for"abcabcbb" is "abc", which the length is 3. F...
分类:
其他好文 时间:
2015-08-19 11:14:04
阅读次数:
167
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-08-18 18:02:56
阅读次数:
198
题目
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3...
分类:
其他好文 时间:
2015-08-17 06:33:30
阅读次数:
232
本文是本人操作系统课程的笔记,因为是所谓的“双语授课”,所以笔记也有些中英夹杂。
3.1进程...
3.1.1概念...
3.1.2进程包括...
3.1.3进程的特性...
3.1.4进程的状态...
3.1.5 PCB.
3.2进程调度...
3.2.1Process Scheduling Queues.
3.2.2 Schedulers.
3...
分类:
系统相关 时间:
2015-08-16 12:23:17
阅读次数:
207
Machine ScheduleTime Limit: 1 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1150DescriptionAs we all know, machine scheduling i...
分类:
系统相关 时间:
2015-08-16 10:37:36
阅读次数:
207
为了使用celery替代crontab并做到实时添加定时任务的效果,需要使用django-celery,效果如下图,
来自:https://www.caktusgroup.com/blog/2014/06/23/scheduling-tasks-celery/
要使用django-celery,需要安装python的以下包:django,ce...
分类:
其他好文 时间:
2015-08-14 19:18:35
阅读次数:
20388
[Leetcode 3, Medium] Longest Substring Without Repeating Characters
分类:
其他好文 时间:
2015-08-13 14:18:23
阅读次数:
98
线程实现模型大概有3种: 1.用户级线程模型 2.内核级线程模型 3.两级线程模型 他们最大的区别在于线程于内核调度实体(Kernel Scheduling Entity)KSE之间的对应关系
分类:
编程语言 时间:
2015-08-13 12:35:16
阅读次数:
116