基于表:
( define ( accumulate op init seq )
( cond
[ ( null? seq ) init ]
[ else
( op ( car seq )
( accumulate op init ( cdr seq ) ) ) ] ) )
( define ( ac...
分类:
其他好文 时间:
2015-01-23 20:10:36
阅读次数:
161
检索技术基本原理: 最主要的两点是 1、如何创建索引 2、如何查询。分析需求: 好几篇文档,从这些文档找关键词,一种方式是顺序一个个遍历,加入这些文档量很多,就花费太长时间了,第二种是建立索引,首先,通过要对文档操作,例如去除标签符合,停词,对词进行转换,例如cars 变为car ,driving ...
分类:
其他好文 时间:
2015-01-23 19:56:16
阅读次数:
2105
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-01-22 21:57:56
阅读次数:
361
library(car)a=c(1,2,3,4,5)b=powerTransform(a)a=bcPower(a,b$lambda);注意,这里的数组a,里面不能有<=0的元素。
分类:
编程语言 时间:
2015-01-20 17:07:48
阅读次数:
228
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 travel from station i to ...
分类:
编程语言 时间:
2015-01-19 22:49:02
阅读次数:
182
天气查询车联网APIhttp://developer.baidu.com/map/index.php?title=car/api/weatherhttp://api.map.baidu.com/telematics/v3/weather?location=%E8%8B%8F%E5%B7%9E&out...
分类:
移动开发 时间:
2015-01-19 12:19:46
阅读次数:
207
Gas StationThere areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it...
分类:
其他好文 时间:
2015-01-18 20:55:10
阅读次数:
135
这个题是个高中的物理公式,只要细节处理好就能过(现在最怕的就是细节啊)~~
题目大意:
城市A、B之间有一条路,长度为l,在距离A城市d的位置放置了限速标志,意味着到那个点的时候速度必须不大于限制速度。现有一车在城市A出发,车的加速度为a,最大速度为v,求通过这条路的最小时间。车出发时的速度为零。
解题思路:
套物理公式,分类讨论
下面...
分类:
其他好文 时间:
2015-01-15 13:02:21
阅读次数:
154
https://oj.leetcode.com/problems/gas-station/There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car...
分类:
其他好文 时间:
2015-01-15 12:29:53
阅读次数:
202
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-01-15 09:26:10
阅读次数:
160