码迷,mamicode.com
首页 >  
搜索关键字:car 限速    ( 3708个结果
对象初始化alloc和init嵌套调用的原因
在objective-c基础教程中有说到在初始化的时候务必要像下面这样的写法:Car *car = [[Car alloc] init];而不能这样写:Car *car = [Car alloc];[car init];这是因为初始化方法返回的对象可能与分配的对象不同,而这都是类簇所造成。下面就介....
分类:其他好文   时间:2015-05-08 12:38:24    阅读次数:174
[LeetCode] Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a ...
分类:其他好文   时间:2015-05-07 16:48:34    阅读次数:78
UVa 12661 Funny Car Racing【 dijkstra 】
题意:给出n个点,m条路,每条路用5个整数表示u,v,a,b,tu表示这条路的起点,v表示终点,a表示打开时间,b表示关闭时间,t表示通过这条道路需要的时间看的紫书,因为边权不再仅仅是路上的时间,还需要处理一下是否需要等待如果不需要等待的话,这条路上的权值就为t如果需要等待的话,这条路的权值就为t+...
分类:其他好文   时间:2015-05-07 00:38:23    阅读次数:141
(leetcode)Add Binary
class Solution {public: string addBinary(string a, string b) { int car = 0; int cur_a = a.length()-1; int cur_b = b.length()-1...
分类:其他好文   时间:2015-05-07 00:22:29    阅读次数:173
windows xp下使用TDI+NDIS实现进程网络流量限速(设计文档)
在windows xp下实现进程网络流量限速...
分类:Windows程序   时间:2015-05-06 19:46:55    阅读次数:342
java 中的构造方法
先定义一个类,名字为Car,实现了两个构造方法如下: 1 public class Car { 2 3 //这里就是一个构造方法,不能有返回值类型, 4 public Car(){ 5 6 System.out.println("Car的构...
分类:编程语言   时间:2015-05-06 14:52:13    阅读次数:187
LeetCode Valid Palindrome
1.题目Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a pali...
分类:其他好文   时间:2015-05-01 18:46:29    阅读次数:129
leetcode || 134、Gas Station
problem: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to trave...
分类:其他好文   时间:2015-04-29 11:36:38    阅读次数:121
Sicily 1780. Faulty Odometer Again
Description You are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the digit 1 to the digit 3, from the digit 4 to the di...
分类:其他好文   时间:2015-04-28 16:16:02    阅读次数:167
一个简单限速器的java实现[2]
在 http://blog.csdn.net/houjixin/article/details/45222081 或者 http://houjixin.blog.163.com/blog/static/3562841020153233201796/ 中实现的限速器,需要内部维持一个容器来记录每次访问的时间,在每次新请求资源时通过计算容器中首尾两个时间的差值以及容器中的访问次数来确定是否超速,...
分类:编程语言   时间:2015-04-28 12:00:20    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!