Initial Course
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace stl_containers {
|
||||
|
||||
[[nodiscard]] auto word_frequencies(const std::vector<std::string>& words)
|
||||
-> std::map<std::string, int>;
|
||||
[[nodiscard]] auto unique_sorted(const std::vector<int>& data) -> std::set<int>;
|
||||
[[nodiscard]] auto invert_map(const std::map<int, std::string>& input)
|
||||
-> std::map<std::string, int>;
|
||||
|
||||
} // namespace stl_containers
|
||||
Reference in New Issue
Block a user