1. Regular expressions 正则表达式被用来根据某种匹配模式来寻找strings中的某些单词。 举例:如果我们想要找到字符串The dog chased the cat中单词 the,我们可以使用下面的正则表达式: /the/gi 我们可以把这个正则表达式分成几段: / 是这个正则 ...
分类:
编程语言 时间:
2017-10-26 11:45:46
阅读次数:
176
def Parametron(strings:String*): Unit ={ strings.foreach(x=>{ println(x) if (x=="88") println(s"********** ${x.toInt}************") }) } ... ...
分类:
其他好文 时间:
2017-10-24 22:51:29
阅读次数:
146
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:
其他好文 时间:
2017-10-24 20:53:00
阅读次数:
172
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:
其他好文 时间:
2017-10-24 17:14:18
阅读次数:
147
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2017-10-23 21:44:26
阅读次数:
148
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2017-10-23 21:40:38
阅读次数:
157
原题链接在这里:https://leetcode.com/problems/add-bold-tag-in-string/description/ 题目: Given a string s and a list of strings dict, you need to add a closed pa ...
分类:
其他好文 时间:
2017-10-20 10:15:24
阅读次数:
195
一.Redis简介Redis是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。
它支持多种类型的数据结构,如
字符串(strings),散列(hashes),列表(lists),集合(sets),有序集合(sortedsets)与范围查询,bitmaps,hyperloglogs和..
分类:
数据库 时间:
2017-10-19 19:59:39
阅读次数:
278
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2017-10-18 16:14:31
阅读次数:
190
Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the defin ...
分类:
其他好文 时间:
2017-10-18 14:09:32
阅读次数:
106