anagram: naive version; almost works, lowercase conversion is needed(?)

This commit is contained in:
Dmitry Kokorin 2016-02-25 17:43:12 +03:00
parent ee13c07c31
commit a4e6b33366
2 changed files with 84 additions and 0 deletions

25
cpp/anagram/anagram.h Normal file
View file

@ -0,0 +1,25 @@
#pragma once
#define EXERCISM_RUN_ALL_TESTS
#include <list>
#include <string>
namespace anagram {
typedef std::list<std::string> StringContainer;
class anagram
{
std::string key;
public:
anagram(const std::string &_key);
StringContainer matches(const StringContainer &input) const;
};
}