判断message是不是在newspaper中

给定2个字符串,newspaper和message,要求判断message是否可以由newspaper中的内容得到。如果是返回ture,否则返回false

cpp/c++实现

#include
#include
#include
using namespace std;

bool canCompose(string newspaper, string message){
    unordered_map hashMap;
    int i;
    if (newspaper.length()

你可能感兴趣的:(c++数据结构,哈希算法,算法)