有效的字母异位词 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的一个字母异位词。 示例 1: 输入: s = "anagram", t = "nagaram" 输出: true 示例 2: 输入: s = "rat", t = "car" 输出: false 说明:你可以假设字 ...
分类:
其他好文 时间:
2018-12-31 20:24:43
阅读次数:
120
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 cost ...
分类:
其他好文 时间:
2018-12-31 19:04:52
阅读次数:
147
1、创建对象 JavaScript中可以通过直接量、关键字new和Object.create函数来创建对象。 1.1、通过对象直接量的方式创建 对象直接量是一个表达式,这个表达式的每次运算都创建并初始化一个新对象。 1.2、通过new创建对象 new运算符创建并初始化一个对象 ...
分类:
编程语言 时间:
2018-12-31 13:01:15
阅读次数:
234
"【HDU4622】Reincarnation" 一眼似乎不可做,但发现$strlen(x)$很小,暴力$O(n^2)$预处理每个区间$(l,r)$,查询时$O(1)$输出就好了 cpp include include include include include typedef int LL; ...
分类:
其他好文 时间:
2018-12-31 11:25:06
阅读次数:
192
Polycarpus has n friends in Tarasov city. Polycarpus knows phone numbers of all his friends: they are strings s1,s2,...,sn. All these strings consist ...
分类:
其他好文 时间:
2018-12-30 21:59:26
阅读次数:
218
1.scala的类(1)类的成员classStudent{//使用var定义一个可变的成员变量varage=18//使用val定义一不可变的成员变量valname="zy"//定义一个私有化成员变量(伴生对象仍然可以访问)privatevarid=1001//定义一个私有化成员变量(伴生对象也不可以访问)private[this]valaddress="anhui"//定义一个成员方法defrun
分类:
其他好文 时间:
2018-12-30 12:08:43
阅读次数:
229
"2797:最短前缀" 总时间限制: 1000ms 内存限制: 65536kB 描述 一个字符串的前缀是从该字符串的第一个字符起始的一个子串。例如 "carbon"的字串是: "c", "ca", "car", "carb", "carbo", 和 "carbon"。注意到这里我们不认为空串是字串, ...
分类:
其他好文 时间:
2018-12-29 18:29:02
阅读次数:
260
1 2 3 4 5 6 首页 7 8 9 10 11 12 分类 13 ... ...
分类:
其他好文 时间:
2018-12-29 13:39:24
阅读次数:
288
7-61 打印沙漏 7-65 连续因子 7-68 城市间紧急救援 7-69 链表去重 7-70 搜索树判断 ...
分类:
其他好文 时间:
2018-12-29 00:13:00
阅读次数:
218
测试芯片stm32f407vet 步骤一:选择调试接口 步骤二:配置SDIO(由于stm32cubemx的fatfs_sd的模板是基于DMA,所以此处使用DMA模式) SDIO中开启对传入传出分别打开DMA 打开SDIO的全局中断 此处仅测试基于SD的fatfs,所以未对中断优先级进行调整 步骤三: ...
分类:
Web程序 时间:
2018-12-28 19:17:05
阅读次数:
395