A DZY Loves Hash 水题 B DZY Loves Strings 水题 C DZY Loves Sequences 枚举修改的位置即可 水 D DZY Loves Modification 给定一个矩阵 进行k次操作 每次取一行或一列 累加他们的和 并且将取中的每一个元素减p 每次找最 ...
分类:
其他好文 时间:
2017-06-11 15:45:04
阅读次数:
256
https://leetcode.com/problems/valid-anagram/#/description Given two strings s and t, write a function to determine if t is an anagram of s. For exampl ...
分类:
其他好文 时间:
2017-06-10 18:28:01
阅读次数:
254
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You need to h ...
分类:
其他好文 时间:
2017-06-10 15:32:31
阅读次数:
154
效果如图: 一、 在frameworks/base/packages/SystemUI/res/values/strings.xml 里加入 <string name="headset_enabled">Headset Enabled.</string> 二、 在fameworks/base/cor ...
分类:
移动开发 时间:
2017-06-09 15:15:04
阅读次数:
191
http://codeforces.com/gym/100712/attachments 题意: 给出一个01串,现在要切割这个01串,使得每个子串长度都不大于k,并且每个子串不能01交替出现,单个字符是合法的。 思路:很容易想到用dp去做,但是怎么做呢? 我们可以先预处理一下i~j是否是合法的子串 ...
分类:
其他好文 时间:
2017-06-07 20:48:31
阅读次数:
185
Swift学习——使用if和switch来进行条件操作,使用for,while,和do-while来进行循环 //switch支持随意类型的数据以及各种比較操作——不不过整数以及測试相等 //注意假设去掉default程序会报错 let strings = "hello3" switch strin ...
分类:
编程语言 时间:
2017-06-06 22:21:37
阅读次数:
174
Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 分析:推断两个String是不是anagrams,比較简单的方法就是先 ...
分类:
其他好文 时间:
2017-06-06 22:10:32
阅读次数:
154
Problem Description One day, sailormoon girls are so delighted that they intend to research about palindromic strings. Operation contains two steps: F ...
分类:
其他好文 时间:
2017-06-06 13:04:46
阅读次数:
140
Redis支持5种数据类型,它们描述如下:Strings-字符串Redis的字符串是字节序列。在Redis中字符串是二进制安全的,这意味着他们有一个已知的长度,是没有任何特殊字符终止决定的,所以可以存储任何东西,最大长度可达512兆。例子redis127.0.0.1:6379>SETname"yiibai"OKredis1..
分类:
其他好文 时间:
2017-06-06 10:53:37
阅读次数:
142
Note: 思路:按照位相加,多余的位数只需要加进位就可以了,如果是最后进位为1,千万不要忘了。 代码: 1.是从末尾开始相加,还要注意进位。 2.返回的是string类型,用arrays的话在leetcode提交不成功。 3.数组的下表是一门技巧。 ...
分类:
其他好文 时间:
2017-06-05 12:37:57
阅读次数:
164