feat: add quiz 2 counter.
This commit is contained in:
15
counter/include/counter.h
Normal file
15
counter/include/counter.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace counter
|
||||
{
|
||||
struct Counter
|
||||
{
|
||||
static std::unordered_map<std::string, long> count(const std::string& input);
|
||||
|
||||
static void countPair(std::unordered_map<std::string, long>& map, const std::string& input);
|
||||
|
||||
|
||||
static void countTriple(std::unordered_map<std::string, long>& map, const std::string& input);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user