Problem Description An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a ...
分类:
其他好文 时间:
2017-07-31 12:37:13
阅读次数:
153
题目描述 牛客最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a ...
分类:
其他好文 时间:
2017-07-31 12:29:18
阅读次数:
109
1.1 协程函数理解 协程函数就是使用了yield表达式形式的生成器 def eater(name): print("%s eat food" %name) while True: food = yield print("done") g = eater("gangdan") print(g) 结果 ...
分类:
编程语言 时间:
2017-07-31 11:45:59
阅读次数:
150
1.sizeWithFont.(7.0废除) - > sizeWithAttributes CGSize size = CGSizeZero; size = [title sizeWithFont:[UIFont systemFontOfSize:15]]; --> size = [title si ...
分类:
其他好文 时间:
2017-07-31 11:44:50
阅读次数:
159
一、 1、24/7 24/7 :twenty four hours a day, seven days a week I work 24/7.——meaing i work all the time. 2、ahead of the curve Ahead of the curve :遥遥领先you ...
分类:
其他好文 时间:
2017-07-31 10:10:22
阅读次数:
176
题意:给你一个无向图,如今要求你把边改成有向的。 使得入度为0的点最少,输出有多少个点入度为0 思路:脑补一波结论。假设有环的话显然没有点入度为0,其余则至少有一个点入度为0,然后就DFS一波就能够了 #include <cstdio> #include <queue> #include <cstr ...
分类:
其他好文 时间:
2017-07-31 10:05:02
阅读次数:
156
java类 Spring mvc配置文件 编写hander 前端展示页面 ...
分类:
编程语言 时间:
2017-07-31 09:58:26
阅读次数:
133
接上篇,这次是真的接上篇,针对上篇未完成的部分,增加鉴权功能,开始之前,我们先要介绍一个新的知识,路由元数据。 在vue-router中,定义元数据的方式: 那么如何访问这个 meta 字段呢? 首先,我们把routes 配置中的每个路由对象叫做路由记录。路由记录可以是嵌套的,因此,当一个路由匹配成 ...
分类:
其他好文 时间:
2017-07-31 00:57:58
阅读次数:
272
前言 Framework7 作为移动端的开发框架的优良之处已经无需多言。现在已经有了 React 和 Vue 版本,之前在项目中用过 F7 + vue 的开发方式,无论是效率还是产出都近乎完美。有时间的话可以单独写篇文章详细介绍 Framework7,并与其它框架做对比。 插件的问题 对于 Fram ...
分类:
其他好文 时间:
2017-07-31 00:55:57
阅读次数:
628