828. 字模式 中文English 给定一个模式串pattern和一个字符串str,请问str和pattern是否遵循相同的模式。这里遵循模式指的是一个完全匹配,即在pattern中的每个不同的字母和str中每个非空的单词之间有一个双向映射的模式对应。 样例 样例1 输入: pattern = " ...
分类:
其他好文 时间:
2020-03-25 00:55:00
阅读次数:
79
813. 找到映射序列 中文English 给出了两个A和B的列表,从A映射到B,B是由A的一种回文构词法构成通过随机化A中元素的顺序来实现的。我们想要找到一个指数映射P,从A到B,映射P[i] = j表示A出现在B中的第i个元素。这些列表A和B可能包含重复。如果有多个答案,输出任何一个。 样例 样 ...
分类:
其他好文 时间:
2020-03-24 20:26:55
阅读次数:
79
773. 有效的字母异位词 中文English 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的字母异位词。 样例 样例 1: 输入: s = "anagram", t = "nagaram" 输出: true 样例 2: 输入: s = "rat", t = "car" 输出: ...
分类:
其他好文 时间:
2020-03-23 11:19:29
阅读次数:
90
737. 查找矩阵 中文English 给一矩阵, 找到矩阵中每一行都出现的元素. 你可以假设矩阵中只有一个满足条件的元素. 样例 样例 1: 输入 : [ [2,5,3], [3,2,1], [1,3,5] ] 输出 : 3 class Solution: """ @param Matrix: t ...
分类:
其他好文 时间:
2020-03-21 19:43:04
阅读次数:
71
整数转换英文表示。题意是给一个整数,请转换成英文表示。例子, Example 1: Input: 123 Output: "One Hundred Twenty Three" Example 2: Input: 12345 Output: "Twelve Thousand Three Hundred ...
分类:
其他好文 时间:
2020-03-19 09:30:00
阅读次数:
67
Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is po ...
分类:
其他好文 时间:
2020-03-18 11:13:53
阅读次数:
47
Linkage Actually I just want to practice my English as more as possbile, instead of 「装B」. During my daily job, I use git a little, and usually, some f ...
分类:
其他好文 时间:
2020-03-17 13:50:54
阅读次数:
71
684. 缺少的字符串 中文English 给出两个字符串,你需要找到缺少的字符串 样例 样例 1: 输入 : str1 = "This is an example", str2 = "is example" 输出 : ["This", "an"] 注意事项 输出时字符串顺序为输入字符串内的顺序 c ...
分类:
其他好文 时间:
2020-03-16 12:26:23
阅读次数:
80
case 1;printf ....;break; default表示以上情况都不满足时显示的(没有找到匹配的值)例 int main(){ int month; printf("请输入月份, 我来判断天数: "); scanf("%d", &month); switch(month) { case ...
分类:
编程语言 时间:
2020-03-14 23:55:09
阅读次数:
91
hexo-theme-cafe Cafe 主题旨在追求简约、操作简单、阅读舒适度。 英文版介绍 Read in English Inspire by Landscape,目前版本主要调整了整体的样式,布局细调,以及新增一些widget等,后期会在使用的过程中不断进行调整。 (色调有点像阮大神博客?是 ...
分类:
其他好文 时间:
2020-03-14 15:08:01
阅读次数:
84