anagram: naive version; almost works, lowercase conversion is needed(?)
This commit is contained in:
parent
ee13c07c31
commit
a4e6b33366
2 changed files with 84 additions and 0 deletions
25
cpp/anagram/anagram.h
Normal file
25
cpp/anagram/anagram.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue