2021年9月26日练习。
LintCode 1270
实际上就是判断组成字符串 ransomNote
字符集合是否是组成字符串 magazine 字符集合的子集。
C++ 中可以使用 includes()
函数进行操作,但是注意需要对元素进行降序排序。
1 | class Solution { |
一方の笔记本
The only source of knowledge is experience.
2021年9月26日练习。
实际上就是判断组成字符串 ransomNote
字符集合是否是组成字符串 magazine 字符集合的子集。
C++ 中可以使用 includes()
函数进行操作,但是注意需要对元素进行降序排序。
1 | class Solution { |
评论