![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
正则表达式
文章平均质量分 86
1000sakura
https://home.cnblogs.com/u/1000sakura/
展开
-
【LeetCode】Unique Email Addresses(独特的电子邮件地址)
这道题是LeetCode里的第929道题。题目要求:每封电子邮件都由一个本地名称和一个域名组成,以 @ 符号分隔。例如,在alice@leetcode.com中,alice是本地名称,而leetcode.com是域名。除了小写字母,这些电子邮件还可能包含'.'或'+'。如果在电子邮件地址的本地名称部分中的某些字符之间添加句点('.'),则发往那里的邮件将会转发...原创 2019-03-23 15:20:40 · 3034 阅读 · 0 评论 -
【LeetCode】Jewels and Stones(宝石与石头)
这道题是LeetCode里的第771道题。题目要求:给定字符串J代表石头中宝石的类型,和字符串S代表你拥有的石头。S中每个字符代表了一种你拥有的石头的类型,你想知道你拥有的石头中有多少是宝石。J中的字母不重复,J和S中的所有字符都是字母。字母区分大小写,因此"a"和"A"是不同类型的石头。示例 1:输入: J = "aA", S = "aAAbbbb"输出...原创 2019-03-23 16:06:31 · 179 阅读 · 0 评论 -
【Codewars】Simple Pig Latin
Codewars里的 5kyu Kata。题目说明:Move the first letter of each word to the end of it, then add "ay" to the end of the word. Leave punctuation marks untouched.ExamplespigIt('Pig latin is cool'); // ...原创 2019-05-30 21:55:40 · 495 阅读 · 0 评论 -
【Codewars】Dubstep
Codewars里的 6kyu Kata。题目说明:Description:Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of ol...原创 2019-05-31 20:14:06 · 439 阅读 · 0 评论